the-other-tim-brown commented on code in PR #17536:
URL: https://github.com/apache/hudi/pull/17536#discussion_r2612681762


##########
hudi-common/src/main/java/org/apache/hudi/common/table/PartitionPathParser.java:
##########
@@ -103,11 +102,9 @@ static Object parseValue(String partitionValue, Schema 
fieldSchema) {
         return Boolean.parseBoolean(partitionValue);
       case BYTES:
       case FIXED:
-        if (fieldSchema.getLogicalType() instanceof LogicalTypes.Decimal) {
-          return new java.math.BigDecimal(partitionValue);
-        } else {
-          return partitionValue.getBytes(StandardCharsets.UTF_8);
-        }
+        return partitionValue.getBytes(StandardCharsets.UTF_8);
+      case DECIMAL:
+        return new BigDecimal(partitionValue);

Review Comment:
   This is covered by `inferDateValue` which is used when `isTimeBasedType` is 
true



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