Created
September 8, 2023 18:21
-
-
Save danthegoodman1/21b6cb319e0c12e62965bc5c480e046c to your computer and use it in GitHub Desktop.
Get int and hex of characters above ascii in clickhouse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select ascii('π'), ascii('a'), bin('π'), bin('a'), reinterpretAsInt64(reverse(unbin(bin('π')))) as tan, reinterpretAsInt64(reverse(unbin(bin('a')))) as a, hex(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment