From 6e3f204ba63237f16037dfe520ced76ff4f27adb Mon Sep 17 00:00:00 2001 From: ClownXC Date: Sun, 12 May 2024 09:39:08 +0800 Subject: [PATCH] unsupportedArrayGenericType add fieldname --- .../common/exception/CommonError.java | 3 ++- .../common/exception/CommonErrorCode.java | 2 +- .../seatunnel/paimon/utils/RowConverter.java | 19 ++++++++++--------- .../paimon/utils/RowTypeConverter.java | 9 ++++++--- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonError.java b/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonError.java index 73a0aedf2de..876ec6ef086 100644 --- a/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonError.java +++ b/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonError.java @@ -212,10 +212,11 @@ public static SeaTunnelRuntimeException sqlTemplateHandledError( } public static SeaTunnelRuntimeException unsupportedArrayGenericType( - String identifier, String dataType) { + String identifier, String dataType, String fieldName) { Map params = new HashMap<>(); params.put("identifier", identifier); params.put("dataType", dataType); + params.put("fieldName", fieldName); return new SeaTunnelRuntimeException(UNSUPPORTED_ARRAY_GENERIC_TYPE, params); } diff --git a/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCode.java b/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCode.java index c91188aa43a..3c1b1053ece 100644 --- a/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCode.java +++ b/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCode.java @@ -54,7 +54,7 @@ public enum CommonErrorCode implements SeaTunnelErrorCode { "The table of has no , but the template \n