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 54929200C4D for ; Wed, 22 Mar 2017 06:23:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 52F88160B90; Wed, 22 Mar 2017 05:23:21 +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 98641160B81 for ; Wed, 22 Mar 2017 06:23:20 +0100 (CET) Received: (qmail 18465 invoked by uid 500); 22 Mar 2017 05:23:19 -0000 Mailing-List: contact issues-help@carbondata.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.incubator.apache.org Delivered-To: mailing list issues@carbondata.incubator.apache.org Received: (qmail 18456 invoked by uid 99); 22 Mar 2017 05:23:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2017 05:23:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 529B3C0B3C for ; Wed, 22 Mar 2017 05:23:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id I8-XV_lwHcbn for ; Wed, 22 Mar 2017 05:23:18 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 244045FD81 for ; Wed, 22 Mar 2017 05:23:18 +0000 (UTC) Received: (qmail 13314 invoked by uid 99); 22 Mar 2017 05:16:23 -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; Wed, 22 Mar 2017 05:16:23 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AF51DDFE1D; Wed, 22 Mar 2017 05:16:23 +0000 (UTC) From: gvramana To: issues@carbondata.incubator.apache.org Reply-To: issues@carbondata.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-carbondata pull request #678: [CARBONDATA-798] Added support to re... Content-Type: text/plain Message-Id: <20170322051623.AF51DDFE1D@git1-us-west.apache.org> Date: Wed, 22 Mar 2017 05:16:23 +0000 (UTC) archived-at: Wed, 22 Mar 2017 05:23:21 -0000 Github user gvramana commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/678#discussion_r107334090 --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/AlterTableCommands.scala --- @@ -198,6 +200,27 @@ private[sql] case class AlterTableRenameTable(alterTableRenameModel: AlterTableR } Seq.empty } + + private def renameBadRecords(oldTableName: String, + newTableName: String, + dataBaseName: String) = { + val badRecordsLocation = CarbonProperties.getInstance() + .getProperty(CarbonCommonConstants.CARBON_BADRECORDS_LOC, + CarbonCommonConstants.CARBON_BADRECORDS_LOC_DEFAULT_VAL) + val badRecordsDatabase = badRecordsLocation + CarbonCommonConstants.FILE_SEPARATOR + --- End diff -- Use a common function to get bad records location --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---