You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by lz...@apache.org on 2025/11/11 05:41:05 UTC

(paimon) 03/18: [hotfix] Print partition spec and type when error in InternalRowPartitionComputer

This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch release-1.3
in repository https://gitbox.apache.org/repos/asf/paimon.git

commit 81e24ab09a7b35febef0d5379349340415471bfb
Author: JingsongLi <ji...@gmail.com>
AuthorDate: Mon Nov 3 22:25:45 2025 +0800

    [hotfix] Print partition spec and type when error in InternalRowPartitionComputer
---
 .../java/org/apache/paimon/utils/InternalRowPartitionComputer.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/paimon-common/src/main/java/org/apache/paimon/utils/InternalRowPartitionComputer.java b/paimon-common/src/main/java/org/apache/paimon/utils/InternalRowPartitionComputer.java
index 0f207aaa64..2382647aa9 100644
--- a/paimon-common/src/main/java/org/apache/paimon/utils/InternalRowPartitionComputer.java
+++ b/paimon-common/src/main/java/org/apache/paimon/utils/InternalRowPartitionComputer.java
@@ -109,9 +109,9 @@ public class InternalRowPartitionComputer {
             Map<String, String> spec, RowType partType, String defaultPartValue) {
         checkArgument(
                 spec.size() == partType.getFieldCount(),
-                "Partition spec size %s not match partition field count %s",
-                spec.size(),
-                partType.getFieldCount());
+                "Partition spec %s size not match partition type %s",
+                spec,
+                partType);
         GenericRow partRow = new GenericRow(spec.size());
         List<String> fieldNames = partType.getFieldNames();
         for (Map.Entry<String, String> entry : spec.entrySet()) {