hsyuan commented on a change in pull request #1795:
URL: https://github.com/apache/calcite/pull/1795#discussion_r493204752
##########
File path: core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java
##########
@@ -1120,6 +1120,16 @@ public static ByteString bitAnd(ByteString b0,
ByteString b1) {
return binaryOperator(b0, b1, (x, y) -> (byte) (x & y));
}
+ /** Bitwise function <code>BIT_AND</code> applied to long and binary values.
*/
+ public static ByteString bitAnd(long b0, ByteString b1) {
+ return binaryOperator(b1, b0, (x, y) -> (byte) (x & y));
+ }
+
+ /** Bitwise function <code>BIT_AND</code> applied to binary and long values.
*/
+ public static ByteString bitAnd(ByteString b0, long b1) {
Review comment:
extra space before `long`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]