You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ra...@apache.org on 2015/04/02 15:57:09 UTC
phoenix git commit: PHOENIX-1800 Fix failing test case
SaltedViewIT#testSaltedUpdatableViewWithLocalIndex(Rajeshbabu Chintaguntla)
Repository: phoenix
Updated Branches:
refs/heads/master 13d6296f7 -> 1e280617c
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/1e280617
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/1e280617
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/1e280617
Branch: refs/heads/master
Commit: 1e280617c25f31658ab7c5a68de62438458a94e5
Parents: 13d6296
Author: Rajeshbabu Chintaguntla <ra...@apache.org>
Authored: Thu Apr 2 19:26:51 2015 +0530
Committer: Rajeshbabu Chintaguntla <ra...@apache.org>
Committed: Thu Apr 2 19:26:51 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/1e280617/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 10ca305..ca25348 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
@@ -483,12 +483,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();