phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samarth Jain (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3461) Statistics collection broken if name space mapping enabled for SYSTEM tables
Date Tue, 08 Nov 2016 02:44:58 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-3461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15646247#comment-15646247
] 

Samarth Jain commented on PHOENIX-3461:
---------------------------------------

The relevant change is in DefaultStatisticsCollector. The other changes are to do with renaming
the method in SchemaUtil for consistency. 
{code}
-            HTableInterface htable = env.getTable(TableName.valueOf(PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES));
+            HTableInterface htable = env.getTable(
+                    SchemaUtil.getPhysicalTableName(PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES,
env.getConfiguration()));
{code}

The table name used here was hardcoded to SYSTEM.CATALOG and wasn't using the appropriate
SchemaUtil method.

> Statistics collection broken if name space mapping enabled for SYSTEM tables
> ----------------------------------------------------------------------------
>
>                 Key: PHOENIX-3461
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3461
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Samarth Jain
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-3461_master.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message