File tree Expand file tree Collapse file tree
core/src/main/java/org/opensearch/sql/executor
opensearch/src/main/java/org/opensearch/sql/opensearch/storage/serde Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import org .apache .calcite .plan .RelOptCluster ;
2020import org .apache .calcite .plan .RelOptTable ;
2121import org .apache .calcite .plan .RelTraitDef ;
22- import org .apache .calcite .prepare .CalciteCatalogReader ;
2322import org .apache .calcite .plan .hep .HepPlanner ;
2423import org .apache .calcite .plan .hep .HepProgram ;
2524import org .apache .calcite .plan .hep .HepProgramBuilder ;
25+ import org .apache .calcite .prepare .CalciteCatalogReader ;
2626import org .apache .calcite .rel .RelCollation ;
2727import org .apache .calcite .rel .RelCollations ;
2828import org .apache .calcite .rel .RelNode ;
2929import org .apache .calcite .rel .RelRoot ;
3030import org .apache .calcite .rel .core .Sort ;
3131import org .apache .calcite .rel .logical .LogicalSort ;
3232import org .apache .calcite .rel .rel2sql .SqlImplementor ;
33- import org .apache .calcite .runtime .CalciteContextException ;
3433import org .apache .calcite .rel .rules .FilterMergeRule ;
34+ import org .apache .calcite .runtime .CalciteContextException ;
3535import org .apache .calcite .schema .SchemaPlus ;
3636import org .apache .calcite .sql .SqlIdentifier ;
3737import org .apache .calcite .sql .SqlNode ;
Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ RexNode toRex(RelInput relInput, @PolyNull Object o) {
500500 }
501501 final RelDataType type = toType (typeFactory , get (map , "type" ));
502502 if (literal instanceof Map && ((Map <?, ?>) literal ).containsKey ("rangeSet" )) {
503- Sarg sarg = sargFromJson ((Map ) literal );
503+ Sarg sarg = sargFromJson ((Map ) literal , type );
504504 return rexBuilder .makeSearchArgumentLiteral (sarg , type );
505505 }
506506 if (type .getSqlTypeName () == SqlTypeName .SYMBOL ) {
@@ -515,7 +515,7 @@ RexNode toRex(RelInput relInput, @PolyNull Object o) {
515515 return rexBuilder .makeNullLiteral (type );
516516 }
517517 final RelDataType type = toType (typeFactory , get (map , "type" ));
518- Sarg sarg = sargFromJson ((Map ) sargObject );
518+ Sarg sarg = sargFromJson ((Map ) sargObject , type );
519519 return rexBuilder .makeSearchArgumentLiteral (sarg , type );
520520 }
521521 if (map .containsKey ("dynamicParam" )) {
You can’t perform that action at this time.
0 commit comments