KYLIN-2364 Output table name to error info in LookupTable Signed-off-by: Billy Liu <billy...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/e46d699e Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e46d699e Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e46d699e Branch: refs/heads/master-hbase1.x Commit: e46d699e05100db084db354d7efb3786575d5c54 Parents: 56daf6d Author: kangkaisen <kangkai...@live.com> Authored: Sat Jan 7 19:43:43 2017 +0800 Committer: Billy Liu <billy...@apache.org> Committed: Sun Jan 8 12:14:05 2017 +0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/kylin/dict/lookup/LookupTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/e46d699e/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/LookupTable.java ---------------------------------------------------------------------- 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<T> { Array<T> key = new Array<T>(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); }