Ferdinanddb commented on issue #14091: URL: https://github.com/apache/iceberg/issues/14091#issuecomment-3306861664
Thanks for the useful recommendation @RussellSpitzer, I will try to change that and implement a unit test for this. In the mean time, for anyone experiencing this bug, I was able to fix by having ```java } else if (type instanceof DateType) { return longToOrderedBytesUDF() .apply(org.apache.spark.sql.functions.unix_date(column).cast(DataTypes.LongType)); } ``` in this file: https://github.com/apache/iceberg/blob/7eef46da0d00edb79b20d24cb7806f6ea8da4000/spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/actions/SparkZOrderUDF.java#L312-L314 -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org