Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 b1063479c -> d033abad2
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/d033abad Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/d033abad Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/d033abad Branch: refs/heads/4.x-HBase-0.98 Commit: d033abad232ea997f0890a63b8f9eaa3b1e7f5ce Parents: b106347 Author: Samarth <[email protected]> Authored: Mon Nov 7 23:22:05 2016 -0800 Committer: Samarth <[email protected]> Committed: Mon Nov 7 23:22:05 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/d033abad/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 c32efc8..3c375bb 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 @@ public 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);
