snuyanzin commented on PR #29050:
URL: https://github.com/apache/flink/pull/29050#issuecomment-5514876629
I noticed such case is failing
```java
Instant subMicro = Instant.ofEpochSecond(1000, 123_456_789);
Variant variant = builder.of(subMicro);
assertThat(variant.getType()).isEqualTo(Variant.Type.TIMESTAMP_LTZ_NS);
variant.getInstant();
```
as
```
org.apache.flink.types.variant.VariantTypeException: Expected type
TIMESTAMP_LTZ but got TIMESTAMP_LTZ_NS
at
org.apache.flink.types.variant.BinaryVariant.checkType(BinaryVariant.java:477)
at
org.apache.flink.types.variant.BinaryVariant.getInstant(BinaryVariant.java:194)
```
--
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]