alex-plekhanov commented on a change in pull request #9681:
URL: https://github.com/apache/ignite/pull/9681#discussion_r773691905
##########
File path:
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/SortAggregateIntegrationTest.java
##########
@@ -114,21 +127,80 @@ public void mapReduceAggregate() {
});
}
+ /** */
+ @Test
+ public void correctCollationsOnMapReduceSortAgg() throws
InterruptedException {
+ fillCacheTbl1(grid(0).cache("TEST"), ROWS);
+
+ QueryEngine engine = Commons.lookupComponent(grid(0).context(),
QueryEngine.class);
Review comment:
Perhaps it's better to extend AbstractBasicIntegrationTest to get rid of
boilerplate code
##########
File path:
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/SortAggregateIntegrationTest.java
##########
@@ -114,21 +127,80 @@ public void mapReduceAggregate() {
});
}
+ /** */
+ @Test
+ public void correctCollationsOnMapReduceSortAgg() throws
InterruptedException {
+ fillCacheTbl1(grid(0).cache("TEST"), ROWS);
+
+ QueryEngine engine = Commons.lookupComponent(grid(0).context(),
QueryEngine.class);
+
+ List<FieldsQueryCursor<List<?>>> cursors = engine.query(
+ null,
+ "PUBLIC",
+ "SELECT /*+ DISABLE_RULE('HashAggregateConverterRule'
,'HashSingleAggregateConverterRule', " +
Review comment:
Too complicated query. To reproduce the problem it's enough just two
columns in the table (PK, COL0) and descending index by COL0, with this query:
`SELECT PK FROM TBL1 WHERE col0 IN (SELECT col0 FROM TBL1)`
--
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]