alex-plekhanov commented on code in PR #11912: URL: https://github.com/apache/ignite/pull/11912#discussion_r2005870607
########## modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/DistributedJoinIntegrationTest.java: ########## @@ -73,6 +73,20 @@ public void testNullAffinityKeys() { .check(); } + /** */ + @Test + public void testTrimExchange() { + sql("CREATE TABLE order_ids(id INTEGER PRIMARY KEY) WITH TEMPLATE=REPLICATED," + atomicity()); + prepareTables(); + + sql("INSERT INTO order_ids(id) SELECT id FROM orders"); + + assertQuery("SELECT sum(o.id) FROM orders o JOIN order_ids oid ON (o.id = oid.id)") + .matches(QueryChecker.containsSubPlan("IgniteTrimExchange")) Review Comment: But we must ensure that trim exchange is used for the query -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org