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

   ### What would you like to be improved?
   
   Add support for VarcharType and CharType partition values in 
spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/utils/SparkPartitionUtils.java
   
   Here a test to help:
   ```
     @Test
     void testGetSparkPartitionValueVarcharAndChar() {
       Assertions.assertEquals(
           UTF8String.fromString("abc"),
           SparkPartitionUtils.getSparkPartitionValue("abc", 
VarcharType.apply(5)));
       Assertions.assertEquals(
           UTF8String.fromString("xy"),
           SparkPartitionUtils.getSparkPartitionValue("xy", CharType.apply(2)));
     }
   ```
   
   ### 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