herunkang2018 commented on code in PR #3319:
URL: https://github.com/apache/calcite/pull/3319#discussion_r1290144365


##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -1842,4 +1842,17 @@ private static RelDataType 
deriveTypeMapFromEntries(SqlOperatorBinding opBinding
           ReturnTypes.INTEGER_NULLABLE,
           OperandTypes.or(OperandTypes.CHARACTER, OperandTypes.BINARY),
           SqlFunctionCategory.NUMERIC);
+
+  /** The "BIT_GET(value, position)" function. */
+  @LibraryOperator(libraries = {SPARK})
+  public static final SqlBasicFunction BIT_GET =
+      SqlBasicFunction.create("BIT_GET",
+          ReturnTypes.INTEGER_NULLABLE,

Review Comment:
   According to Spark's [PR](https://github.com/apache/spark/pull/31198/files) 
to support `BIT_GET` function, the return type should be `TINYINT`. I will fix 
this soon.



-- 
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]

Reply via email to