Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3ACFF200BC5 for ; Tue, 8 Nov 2016 03:45:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 37BDA160AF9; Tue, 8 Nov 2016 02:45:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A550C160AEC for ; Tue, 8 Nov 2016 03:44:59 +0100 (CET) Received: (qmail 65386 invoked by uid 500); 8 Nov 2016 02:44:58 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 65365 invoked by uid 99); 8 Nov 2016 02:44:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 02:44:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B18772C1F56 for ; Tue, 8 Nov 2016 02:44:58 +0000 (UTC) Date: Tue, 8 Nov 2016 02:44:58 +0000 (UTC) From: "Samarth Jain (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3461) Statistics collection broken if name space mapping enabled for SYSTEM tables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 02:45:00 -0000 [ 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)