RussellSpitzer commented on PR #15778:
URL: https://github.com/apache/iceberg/pull/15778#issuecomment-4156893168
@milleniax I'm also afraid of that ... maybe we should just do a custom udf
for Timestamp-NTZ types?
```java
functions
.udf(
(LocalDateTime value) -> {
if (value == null) {
return PRIMITIVE_EMPTY;
}
long micros = ChronoUnit.MICROS.between(EPOCH, value);
return ZOrderByteUtils.longToOrderedBytes(
micros, inputBuffer(position,
ZOrderByteUtils.PRIMITIVE_BUFFER_SIZE))
.array();
},
DataTypes.BinaryType)
.withName("TIMESTAMP_NTZ_ORDERED_BYTES");
```
Wdyt?
--
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]