oleg-zinovev commented on code in PR #12096:
URL: https://github.com/apache/ignite/pull/12096#discussion_r3310424767


##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/WindowPlannerTest.java:
##########
@@ -241,4 +265,16 @@ public void testDeriveAffinityDistribution() throws 
Exception {
             .and(input(isInstanceOf(IgniteSort.class)
                 .and(it -> it.distribution().equals(affinity))))));
     }
+
+    /**
+     * @throws Exception if failed
+     */
+    @Test
+    public void testConstantsInPartitionByAndOrderBy() throws Exception {
+        String sql = "SELECT MAX(VALUE) OVER (PARTITION BY 1 ORDER BY 2) FROM 
AFFINITY_TBL";
+
+        assertPlan(sql, publicSchema, 
nodeOrAnyChild(isInstanceOf(IgniteWindow.class)

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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to