From ffd9761bb595e42bbf05126ddec882e60f03aeb8 Mon Sep 17 00:00:00 2001 From: kangkaisen Date: Sat, 7 Jan 2017 19:43:43 +0800 Subject: [PATCH] KYLIN-2364 Output table name to error info in LookupTable --- .../src/main/java/org/apache/kylin/dict/lookup/LookupTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/LookupTable.java b/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/LookupTable.java index 21221f4..90ca500 100644 --- a/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/LookupTable.java +++ b/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/LookupTable.java @@ -83,7 +83,7 @@ abstract public class LookupTable { Array key = new Array(keyCols); if (data.containsKey(key)) - throw new IllegalStateException("Dup key found, key=" + toString(keyCols) + ", value1=" + toString(data.get(key)) + ", value2=" + toString(value)); + throw new IllegalStateException("The table: " + tableDesc.getName() + " Dup key found, key=" + toString(keyCols) + ", value1=" + toString(data.get(key)) + ", value2=" + toString(value)); data.put(key, value); } -- 2.10.1 (Apple Git-78)