JingsongLi commented on code in PR #853:
URL: https://github.com/apache/incubator-paimon/pull/853#discussion_r1161382721
##########
paimon-core/src/main/java/org/apache/paimon/utils/RowDataPartitionComputer.java:
##########
@@ -52,7 +57,18 @@ public LinkedHashMap<String, String>
generatePartValues(InternalRow in) {
for (int i = 0; i < partitionFieldGetters.length; i++) {
Object field = partitionFieldGetters[i].getFieldOrNull(in);
- String partitionValue = field != null ? field.toString() : null;
+ String partitionValue;
+
+ if (Objects.nonNull(field)) {
+ if (fieldTypes.get(i).is(DataTypeRoot.DATE)) {
Review Comment:
also check Time Type
--
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]