justinmclean opened a new issue, #9080:
URL: https://github.com/apache/gravitino/issues/9080

   ### What would you like to be improved?
   
   In 
flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/utils/TypeUtils.java
 fix the Flink TypeUtils map conversion to use the value-type nullability 
instead of the map-level nullability.
   
   Here is an updated test (in TestTypeUtils.java):
   ```
       Assertions.assertEquals(
           Types.MapType.of(Types.StringType.get(), Types.IntegerType.get(), 
true),
           TypeUtils.toGravitinoType(
               new MapType(true, new VarCharType(Integer.MAX_VALUE), new 
IntType(true))));
       Assertions.assertEquals(
           Types.MapType.of(Types.StringType.get(), Types.IntegerType.get(), 
false),
           TypeUtils.toGravitinoType(
               new MapType(true, new VarCharType(Integer.MAX_VALUE), new 
IntType(false))));
       Assertions.assertEquals(
           Types.MapType.of(Types.StringType.get(), Types.IntegerType.get(), 
false),
           TypeUtils.toGravitinoType(
               new MapType(false, new VarCharType(Integer.MAX_VALUE), new 
IntType(false))));
   ```
   
   ### How should we improve?
   
   _No response_


-- 
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]

Reply via email to