jinchengchenghh commented on code in PR #13199:
URL: https://github.com/apache/gluten/pull/13199#discussion_r4269810405


##########
gluten-iceberg/src/main/scala/org/apache/iceberg/spark/source/IcebergWriteUtil.scala:
##########
@@ -114,7 +119,27 @@ object IcebergWriteUtil {
   }
 
   def getSortOrder(write: Write): SortOrder = {
-    getTable(write).sortOrder()
+    if (write.asInstanceOf[SparkWrite].requiredOrdering().nonEmpty) {
+      getTable(write).sortOrder()

Review Comment:
   What returns when write.asInstanceOf[SparkWrite].requiredOrdering() is empty?



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