Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 4874999

Browse files
AndreyPavlenkoienkovich
authored andcommitted
Calcite: Add support for the bitwise NOT (~) operator
1 parent 2908054 commit 4874999

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

omniscidb/Calcite/java/calcite/src/main/java/com/mapd/calcite/parser/MapDSqlOperatorTable.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ public static void addUDF(
245245
opTab.addOperator(new is_point_size_in_view());
246246
opTab.addOperator(new usTimestamp());
247247
opTab.addOperator(new nsTimestamp());
248+
opTab.addOperator(new SqlFunction("BIT_NOT",
249+
SqlKind.OTHER_FUNCTION,
250+
ReturnTypes.ARG0_NULLABLE,
251+
null,
252+
OperandTypes.or(OperandTypes.INTEGER, OperandTypes.BINARY),
253+
SqlFunctionCategory.NUMERIC));
248254
if (extSigs == null) {
249255
return;
250256
}

0 commit comments

Comments
 (0)