Stefanietry commented on code in PR #6394:
URL: https://github.com/apache/paimon/pull/6394#discussion_r2480688672
##########
paimon-common/src/main/java/org/apache/paimon/utils/InternalRowPartitionComputer.java:
##########
@@ -142,4 +143,13 @@ public static String partToSimpleString(
String result = builder.toString();
return result.substring(0, Math.min(result.length(), maxLength));
}
+
+ public List<String> generateOrderPartValues(InternalRow in) {
Review Comment:
It is hoped to obtain the partition values in the order of the partition
fields, and then calculate the dependent partitions according to the unit step
size. For example, taking the hourly level as an example, the unit step size of
the partition is hours. If starting from 0:00 on 20250811 and ending at 0:00 on
20250812, 24 incremental partitions in hours can be obtained, for the specific
usage, please refer to
org.apache.paimon.partition.InternalRowPartitionUtils#getDeltaPartitions. Unit
tests have been added, please refer to
org.apache.paimon.utils.InternalRowPartitionComputerTest#testGenerateOrderPartValues
--
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]