[ https://issues.apache.org/jira/browse/CALCITE-3782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206789#comment-17206789 ]
hailong wang commented on CALCITE-3782: --------------------------------------- Thanks [~julianhyde], [~vladimirsitnikov]. Sorry for reply later, This judgment is indeed confusing. [~vladimirsitnikov] do you mean `bitand(empty, non-empty)` should throw exception for the different lengths of two byteString. If that, I think We can just remove `byteString.size() == 0 `? > Bitwise operator Bit_And, Bit_OR and Bit_XOR support binary and varbinary type > ------------------------------------------------------------------------------ > > Key: CALCITE-3782 > URL: https://issues.apache.org/jira/browse/CALCITE-3782 > Project: Calcite > Issue Type: Sub-task > Components: core > Affects Versions: 1.22.0 > Reporter: hailong wang > Assignee: hailong wang > Priority: Major > Labels: pull-request-available > Fix For: 1.26.0 > > Time Spent: 4h 50m > Remaining Estimate: 0h > > According to the discussion link CALCITE-3732 , We should make bitwise > operators work on all integer types, BINARY and VARBINARY. So Bit_And, Bit_OR > and Bit_XOR agg operator should also support BINARY and VARBINARY. -- This message was sent by Atlassian Jira (v8.3.4#803005)