Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 cb232ea87 -> b3d439e04


PHOENIX-3461 Statistics collection broken if name space mapping enabled for 
SYSTEM tables


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/b3d439e0
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b3d439e0
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b3d439e0

Branch: refs/heads/4.x-HBase-1.1
Commit: b3d439e048c01563a0b18d198eb3485bda925827
Parents: cb232ea
Author: Samarth <[email protected]>
Authored: Mon Nov 7 23:31:54 2016 -0800
Committer: Samarth <[email protected]>
Committed: Mon Nov 7 23:31:54 2016 -0800

----------------------------------------------------------------------
 .../apache/phoenix/schema/stats/DefaultStatisticsCollector.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/b3d439e0/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/DefaultStatisticsCollector.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/DefaultStatisticsCollector.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/DefaultStatisticsCollector.java
index 9cff48c..e8ecb14 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/DefaultStatisticsCollector.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/DefaultStatisticsCollector.java
@@ -121,7 +121,8 @@ class DefaultStatisticsCollector implements 
StatisticsCollector {
                     env.getRegion().getTableDesc());
         } else {
             // Next check for GUIDE_POST_WIDTH on table
-            HTableInterface htable = 
env.getTable(TableName.valueOf(PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES));
+            HTableInterface htable = env.getTable(
+                    
SchemaUtil.getPhysicalTableName(PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES,
 env.getConfiguration()));
             Get get = new Get(ptableKey);
             get.addColumn(PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES, 
PhoenixDatabaseMetaData.GUIDE_POSTS_WIDTH_BYTES);
             Result result = htable.get(get);

Reply via email to