herunkang2018 commented on code in PR #3479:
URL: https://github.com/apache/calcite/pull/3479#discussion_r1376086886
##########
site/_docs/reference.md:
##########
@@ -2739,6 +2739,9 @@ BigQuery's type system uses confusingly different names
for types and functions:
| b | FORMAT_TIMESTAMP(string timestamp) | Formats *timestamp*
according to the specified format *string*
| s | GETBIT(value, position) | Equivalent to
`BIT_GET(value, position)`
| b o | GREATEST(expr [, expr ]*) | Returns the greatest of
the expressions
+| h s | HEX(binary) | Converts *binary* into
a hexadecimal varchar. For example, hex(x'6162') returns '6162'
+| h s | HEX(bigint) | Converts *bigint* into
a shortened hexadecimal varchar. For example, hex('17') returns '11'
Review Comment:
A bigint value is stored using 8 bytes and will be converted into 16
hexadecimal chars, and may contain leading zeros. In order to keep consistent
with the behaviour of Hive and Spark, the leading zeros will be removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]