fx19880617 commented on a change in pull request #5018: Support arithmetic
operators like '+','-','*','/','%'
URL: https://github.com/apache/incubator-pinot/pull/5018#discussion_r372065895
##########
File path:
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/BaseClusterIntegrationTestSet.java
##########
@@ -176,6 +176,14 @@ public void testHardcodedSqlQueries()
testSqlQuery(query, Collections.singletonList(query));
query = "SELECT DaysSinceEpoch, COUNT(*), MAX(ArrTime), MIN(ArrTime) FROM
mytable GROUP BY DaysSinceEpoch";
testSqlQuery(query, Collections.singletonList(query));
+ query = "SELECT ArrTime, ArrTime * 10 FROM mytable WHERE DaysSinceEpoch >=
16312";
+ testSqlQuery(query, Collections.singletonList(query));
+ query = "SELECT ArrTime, ArrTime - ArrTime % 10 FROM mytable WHERE
DaysSinceEpoch >= 16312";
+ testSqlQuery(query, Collections.singletonList(query));
+ query = "SELECT ArrTime, ArrTime + ArrTime * 9 - ArrTime * 10 FROM mytable
WHERE DaysSinceEpoch >= 16312";
+ testSqlQuery(query, Collections.singletonList(query));
Review comment:
added
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]