File tree Expand file tree Collapse file tree
pinot-common/src/test/java/org/apache/pinot/sql/parsers/rewriter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919package org .apache .pinot .sql .parsers .rewriter ;
2020
2121import org .apache .pinot .common .request .Expression ;
22+ import org .apache .pinot .common .request .Function ;
2223import org .apache .pinot .common .request .PinotQuery ;
2324import org .apache .pinot .common .utils .request .RequestUtils ;
2425import org .apache .pinot .sql .FilterKind ;
@@ -122,7 +123,7 @@ public void testCompiledNestedLongInsideDoubleCastInWhere() {
122123 PinotQuery pinotQuery = CalciteSqlParser .compileToPinotQueryWithoutRewrites (
123124 "SELECT intMetric1 FROM t WHERE CAST(CAST(event_timestamp AS LONG) AS DOUBLE) >= 0" );
124125 PinotQuery rewritten = _rewriter .rewrite (pinotQuery );
125- Expression greaterOrEquals = rewritten .getFilterExpression ().getFunctionCall ();
126+ Function greaterOrEquals = rewritten .getFilterExpression ().getFunctionCall ();
126127 Assert .assertEquals (greaterOrEquals .getOperator (), FilterKind .GREATER_THAN_OR_EQUAL .name ());
127128 Expression outerCast = greaterOrEquals .getOperands ().get (0 );
128129 Expression inner = outerCast .getFunctionCall ().getOperands ().get (0 );
You can’t perform that action at this time.
0 commit comments