Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 37ac2fefb -> 681b310b7
PHOENIX-1800 Fix failing test case SaltedViewIT#testSaltedUpdatableViewWithLocalIndex(Rajeshbabu Chintaguntla) Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/681b310b Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/681b310b Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/681b310b Branch: refs/heads/4.x-HBase-0.98 Commit: 681b310b7f147cbfbcde978da7f615d0936bb515 Parents: 37ac2fe Author: Rajeshbabu Chintaguntla <rajeshb...@apache.org> Authored: Thu Apr 2 19:28:03 2015 +0530 Committer: Rajeshbabu Chintaguntla <rajeshb...@apache.org> Committed: Thu Apr 2 19:28:03 2015 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/phoenix/util/IndexUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/681b310b/phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java index c147f91..ba96c83 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java @@ -481,12 +481,12 @@ public class IndexUtil { if (dataRegion != null) { joinResult = dataRegion.get(get); } else { - TableName indexTable = - TableName.valueOf(MetaDataUtil.getLocalIndexPhysicalName(c.getEnvironment() - .getRegion().getTableDesc().getName())); + TableName dataTable = + TableName.valueOf(MetaDataUtil.getUserTableName(c.getEnvironment() + .getRegion().getTableDesc().getNameAsString())); HTableInterface table = null; try { - table = c.getEnvironment().getTable(indexTable); + table = c.getEnvironment().getTable(dataTable); joinResult = table.get(get); } finally { if (table != null) table.close();