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

Commit c8d7d5d

Browse files
AndreyPavlenkoalexbaden
authored andcommitted
Fixed Calcite processing of queries with APPROX_QUANTILE aggregation.
The removed code seems redundant and it fails with "IllegalArgumentException: No enum constant org.apache.calcite.sql.SqlKind.APPROX_QUANTILE" if the query contains an APPROX_QUANTILE aggregation. Signed-off-by: Andrey Pavlenko <[email protected]>
1 parent bc154e4 commit c8d7d5d

File tree

1 file changed

+0
-5
lines changed
  • omniscidb/Calcite/java/calcite/src/main/java/org/apache/calcite/rel/externalize

1 file changed

+0
-5
lines changed

omniscidb/Calcite/java/calcite/src/main/java/org/apache/calcite/rel/externalize/MapDRelJson.java

-5
Original file line numberDiff line numberDiff line change
@@ -562,11 +562,6 @@ private SqlOperator toOp(String op, Map<String, Object> map) {
562562
}
563563

564564
SqlOperator toOp(RelInput relInput, String name) {
565-
// in case different operator has the same kind, check with both name and kind.
566-
String kind = name;
567-
String syntax = "FUNCTION";
568-
SqlKind sqlKind = SqlKind.valueOf(kind);
569-
SqlSyntax sqlSyntax = SqlSyntax.valueOf(syntax);
570565
MapDSqlOperatorTable operatorTable =
571566
new MapDSqlOperatorTable(SqlStdOperatorTable.instance());
572567
MapDSqlOperatorTable.addUDF(operatorTable, null);

0 commit comments

Comments
 (0)