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 253C8200D2D for ; Fri, 27 Oct 2017 12:43:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 23C47160BDC; Fri, 27 Oct 2017 10:43:24 +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 5F8B41609E9 for ; Fri, 27 Oct 2017 12:43:23 +0200 (CEST) Received: (qmail 99517 invoked by uid 500); 27 Oct 2017 10:43:22 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 99508 invoked by uid 99); 27 Oct 2017 10:43:22 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2017 10:43:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7CC85DFAEB; Fri, 27 Oct 2017 10:43:22 +0000 (UTC) From: sounakr To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org References: In-Reply-To: Subject: [GitHub] carbondata pull request #1434: [CARBONDATA-1593]Add partition to table cause... Content-Type: text/plain Message-Id: <20171027104322.7CC85DFAEB@git1-us-west.apache.org> Date: Fri, 27 Oct 2017 10:43:22 +0000 (UTC) archived-at: Fri, 27 Oct 2017 10:43:24 -0000 Github user sounakr commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1434#discussion_r147375453 --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/partition/AlterTableSplitCarbonPartitionCommand.scala --- @@ -109,7 +109,7 @@ case class AlterTableSplitCarbonPartitionCommand( CarbonUtil.writeThriftTableToSchemaFile(schemaFilePath, thriftTable) // update the schema modified time carbonMetaStore.updateAndTouchSchemasUpdatedTime(storePath) - sparkSession.catalog.refreshTable(tableName) + sparkSession.catalog.refreshTable(s"$dbName.$tableName") --- End diff -- Better to call SessionCatalog.refreshTable rather than Catalog refreshTable as it will honour the DBName. sparkSession.sessionState.catalog.refreshTable() and pass TableIdentifier. ---