aokolnychyi commented on code in PR #7443:
URL: https://github.com/apache/iceberg/pull/7443#discussion_r1179307216


##########
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/SortOrderToSpark.java:
##########
@@ -53,7 +53,7 @@ public SortOrder truncate(
       String sourceName, int id, int width, SortDirection direction, NullOrder 
nullOrder) {
     return Expressions.sort(
         Expressions.apply(
-            "truncate", Expressions.column(quotedName(id)), 
Expressions.literal(width)),
+            "truncate", Expressions.literal(width), 
Expressions.column(quotedName(id))),

Review Comment:
   Had to switch it around so that `truncate` is resolvable. Spark did not 
support transforms with multiple arguments before.



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

Reply via email to