Skip to content

Commit b343cf8

Browse files
committed
Remove unused validator operators
- 2 more ITs passed in PPLBuiltinFunctionIT Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent e547ea6 commit b343cf8

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

core/src/main/java/org/opensearch/sql/expression/function/PPLFuncImpTable.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ void populate() {
873873
registerOperator(REVERSE, SqlLibraryOperators.REVERSE);
874874
registerOperator(RIGHT, SqlLibraryOperators.RIGHT);
875875
registerOperator(LEFT, SqlLibraryOperators.LEFT);
876+
registerOperator(LOG, SqlLibraryOperators.LOG_MYSQL);
876877
registerOperator(LOG2, SqlLibraryOperators.LOG2);
877878
registerOperator(MD5, SqlLibraryOperators.MD5);
878879
registerOperator(SHA1, SqlLibraryOperators.SHA1);
@@ -1180,21 +1181,6 @@ void populate() {
11801181
SqlTypeFamily.INTEGER,
11811182
SqlTypeFamily.INTEGER)),
11821183
false));
1183-
1184-
register(
1185-
LOG,
1186-
(FunctionImp2)
1187-
(builder, arg1, arg2) -> builder.makeCall(SqlLibraryOperators.LOG, arg2, arg1),
1188-
PPLTypeChecker.family(SqlTypeFamily.NUMERIC, SqlTypeFamily.NUMERIC));
1189-
register(
1190-
LOG,
1191-
(FunctionImp1)
1192-
(builder, arg) ->
1193-
builder.makeCall(
1194-
SqlLibraryOperators.LOG,
1195-
arg,
1196-
builder.makeApproxLiteral(BigDecimal.valueOf(Math.E))),
1197-
PPLTypeChecker.family(SqlTypeFamily.NUMERIC));
11981184
// SqlStdOperatorTable.SQRT is declared but not implemented. The call to SQRT in Calcite is
11991185
// converted to POWER(x, 0.5).
12001186
register(

0 commit comments

Comments
 (0)