huaxingao commented on code in PR #12494:
URL: https://github.com/apache/iceberg/pull/12494#discussion_r2048321664


##########
spark/v4.0/spark/src/test/java/org/apache/iceberg/spark/actions/TestRewriteDataFilesAction.java:
##########
@@ -1698,6 +1698,7 @@ public void testZOrderSort() {
 
   @TestTemplate
   public void testZOrderAllTypesSort() {
+    spark.conf().set("spark.sql.ansi.enabled", "false");

Review Comment:
   With ansi on, we will get
   ```
   [DATATYPE_MISMATCH.CAST_WITH_CONF_SUGGESTION] Cannot resolve "CAST(longCol 
AS BINARY)" due to data type mismatch: cannot cast "BIGINT" to "BINARY" with 
ANSI mode on.
   ```
   we have the CAST at this 
[line](https://github.com/apache/iceberg/blob/main/spark/v3.4/spark/src/test/java/org/apache/iceberg/spark/actions/TestRewriteDataFilesAction.java#L2269).



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