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 E034A200D5F for ; Mon, 18 Dec 2017 07:51:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DE902160C05; Mon, 18 Dec 2017 06:51:33 +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 57911160BF9 for ; Mon, 18 Dec 2017 07:51:33 +0100 (CET) Received: (qmail 37199 invoked by uid 500); 18 Dec 2017 06:51:32 -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 37190 invoked by uid 99); 18 Dec 2017 06:51:32 -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; Mon, 18 Dec 2017 06:51:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6F3BFE8F1F; Mon, 18 Dec 2017 06:51:32 +0000 (UTC) From: watermen To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org References: In-Reply-To: Subject: [GitHub] carbondata pull request #1665: [CARBONDATA-1884] Add CTAS support to carbond... Content-Type: text/plain Message-Id: <20171218065132.6F3BFE8F1F@git1-us-west.apache.org> Date: Mon, 18 Dec 2017 06:51:32 +0000 (UTC) archived-at: Mon, 18 Dec 2017 06:51:34 -0000 Github user watermen commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1665#discussion_r157410277 --- Diff: integration/spark2/src/main/spark2.2/CarbonSessionState.scala --- @@ -280,25 +280,26 @@ class CarbonOptimizer( } } -class CarbonSqlAstBuilder(conf: SQLConf, parser: CarbonSpark2SqlParser) extends - SparkSqlAstBuilder(conf) { +class CarbonSqlAstBuilder(conf: SQLConf, parser: CarbonSpark2SqlParser, sparkSession: SparkSession) + extends SparkSqlAstBuilder(conf) { - val helper = new CarbonHelperSqlAstBuilder(conf, parser) + val helper = new CarbonHelperSqlAstBuilder(conf, parser, sparkSession) override def visitCreateHiveTable(ctx: CreateHiveTableContext): LogicalPlan = { val fileStorage = helper.getFileStorage(ctx.createFileFormat) if (fileStorage.equalsIgnoreCase("'carbondata'") || fileStorage.equalsIgnoreCase("'org.apache.carbondata.format'")) { helper.createCarbonTable(ctx.createTableHeader, - ctx.skewSpec, --- End diff -- @jackylk We should use the right format at the first time, I mean use 2 blanks instead of 4 blanks. We should avoid unrelated modify, so we can keep each MR with less diff. Better to review and better to rebase. ---