yashmayya commented on code in PR #16972:
URL: https://github.com/apache/pinot/pull/16972#discussion_r2412468681
##########
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/OfflineClusterIntegrationTest.java:
##########
@@ -3942,6 +3942,44 @@ public void testAggregationWithLimitZero(boolean
useMultiStageQueryEngine)
assertEquals(columnDataTypes.get(0).asText(), "DOUBLE");
}
+ @Test(dataProvider = "useBothQueryEngines")
+ public void testMinMaxString(boolean useMultiStageQueryEngine)
+ throws Exception {
+ setUseMultiStageQueryEngine(useMultiStageQueryEngine);
+
+ String sqlQuery = "SELECT MIN_STRING(DestCityName),
MAX_STRING(DestCityName) FROM mytable";
+ JsonNode response = postQuery(sqlQuery);
+ assertTrue(response.get("exceptions").isEmpty());
+ JsonNode row = response.get("resultTable").get("rows").get(0);
Review Comment:
Assertion on the data type in the response schema might also be useful?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]