siddharthteotia commented on a change in pull request #6820: URL: https://github.com/apache/incubator-pinot/pull/6820#discussion_r644415756
########## File path: pinot-core/src/test/java/org/apache/pinot/queries/InnerSegmentSelectionSingleValueQueriesTest.java ########## @@ -80,6 +81,49 @@ public void testSelectLimitZero() { Assert.assertTrue(resultsBlock.getSelectionResult().isEmpty()); } + @Test + public void testSelectionOrderByAgoFunction() { + String query = "SELECT daysSinceEpoch FROM testTable WHERE " + + "dateTimeConvert(daysSinceEpoch, '1:DAYS:EPOCH', '1:MILLISECONDS:EPOCH', '1:MILLISECONDS') > ago('P1D') " + + "ORDER BY daysSinceEpoch LIMIT 10"; + SelectionOrderByOperator selectionOrderByOperator = getOperatorForSqlQuery(query); Review comment: I think all the code between line 89 to 105 and and 109 to 124 can be extracted into a private helper function -- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org