pan3793 commented on code in PR #14108:
URL: https://github.com/apache/iceberg/pull/14108#discussion_r2366594983
##########
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/actions/SparkZOrderUDF.java:
##########
@@ -310,7 +310,8 @@ Column sortedLexicographically(Column column, DataType
type) {
} else if (type instanceof TimestampType) {
return longToOrderedBytesUDF().apply(column.cast(DataTypes.LongType));
} else if (type instanceof DateType) {
- return longToOrderedBytesUDF().apply(column.cast(DataTypes.LongType));
+ return longToOrderedBytesUDF()
+
.apply(org.apache.spark.sql.functions.unix_date(column).cast(DataTypes.LongType));
Review Comment:
why not `import org.apache.spark.sql.functions.unix_date;` ahead?
--
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]