From 71e2061b5dbd286e45855c81473e849583ead9df Mon Sep 17 00:00:00 2001 From: Pierre Villard Date: Fri, 30 Dec 2016 15:20:00 +0100 Subject: [PATCH] NIFI-2968 This closes #1377. Improved message when ExecuteSQL hits unsupported SQL types --- .../org/apache/nifi/processors/standard/util/JdbcCommon.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/JdbcCommon.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/JdbcCommon.java index 49be067a8a..40709d0e63 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/JdbcCommon.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/JdbcCommon.java @@ -347,7 +347,8 @@ public class JdbcCommon { default: - throw new IllegalArgumentException("createSchema: Unknown SQL type " + meta.getColumnType(i) + " cannot be converted to Avro type"); + throw new IllegalArgumentException("createSchema: Unknown SQL type " + meta.getColumnType(i) + " / " + meta.getColumnTypeName(i) + + " (table: " + tableName + ", column: " + columnName + ") cannot be converted to Avro type"); } }