twalthr commented on code in PR #27929:
URL: https://github.com/apache/flink/pull/27929#discussion_r3085995125


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableImpl.java:
##########
@@ -878,36 +875,52 @@ private static final class PartitionedTableImpl 
implements PartitionedTable {
 
         private final TableImpl table;
         private final List<Expression> partitionKeys;
+        private final List<Expression> orderKeys;
 
         private PartitionedTableImpl(TableImpl table, List<Expression> 
partitionKeys) {
+            this(table, partitionKeys, Collections.emptyList());
+        }
+
+        private PartitionedTableImpl(
+                TableImpl table, List<Expression> partitionKeys, 
List<Expression> orderKeys) {
             this.table = table;
             this.partitionKeys = partitionKeys;
+            this.orderKeys = orderKeys;
+        }
+
+        @Override
+        public PartitionedTable orderBy(Expression... fields) {

Review Comment:
   I just checked the code base. Yes it can be any expression, but apprarently 
we do it various locations this way. Including select(). I will keep it fields 
just for consistency, but spotted the preprocessing that was actually not 
necessary.



-- 
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