xuzifu666 commented on code in PR #10530:
URL: https://github.com/apache/hudi/pull/10530#discussion_r1457132812


##########
hudi-spark-datasource/hudi-spark3-common/src/main/scala/org/apache/spark/sql/execution/datasources/Spark3ParsePartitionUtil.scala:
##########
@@ -236,7 +235,10 @@ object Spark3ParsePartitionUtil extends 
SparkParsePartitionUtil {
 
     if (typeInference) {
       // First tries integral types
-      Try({ Integer.parseInt(raw); IntegerType })
+      Try({ JByte.parseByte(raw); ByteType })

Review Comment:
   When parsePartition need accurate DataType to  
castPartValueToDesiredType,otherwise may give inaccurate to caller 



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