justinmclean opened a new issue, #8345:
URL: https://github.com/apache/gravitino/issues/8345
### What would you like to be improved?
Correct the Flink connector’s type conversion logic so that Gravitino
timestamp types propagate their precision when mapped to Flink DataTypes,
instead of always using the default precision
Here a test to help:
```
@Test
public void testToFlinkTypeWithPrecision() {
Assertions.assertEquals(
DataTypes.TIMESTAMP(3),
TypeUtils.toFlinkType(Types.TimestampType.withoutTimeZone(3)));
Assertions.assertEquals(
DataTypes.TIMESTAMP_WITH_LOCAL_TIME_ZONE(3),
TypeUtils.toFlinkType(Types.TimestampType.withTimeZone(3)));
}
```
### How should we improve?
Fix
flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/utils/TypeUtils.java
--
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]