Skip to content

Instantly share code, notes, and snippets.

@danthegoodman1
Created September 8, 2023 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danthegoodman1/21b6cb319e0c12e62965bc5c480e046c to your computer and use it in GitHub Desktop.
Save danthegoodman1/21b6cb319e0c12e62965bc5c480e046c to your computer and use it in GitHub Desktop.
Get int and hex of characters above ascii in clickhouse
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