You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by jackylk <gi...@git.apache.org> on 2017/09/24 14:46:01 UTC

[GitHub] carbondata pull request #1379: [CARBONDATA-1151] Refactor all carbon command...

GitHub user jackylk opened a pull request:

    https://github.com/apache/carbondata/pull/1379

    [CARBONDATA-1151] Refactor all carbon command to separate file in spark2 integration

    Currently in carbon-spark2 integration module, all carbon commands written in carbonTableSchema.scala, which is not good for readability and maintenance.
    
    This PR moves all of them into separated file and name each one as XXXCommand
    
    No Testcase is added

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jackylk/incubator-carbondata command

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/1379.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1379
    
----
commit 27999a511999d0a2bed316d74caa89ae036a6d40
Author: Jacky Li <ja...@qq.com>
Date:   2017-09-24T14:34:32Z

    refactory command

----


---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 1.6, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/170/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/931/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    LGTM


---

[GitHub] carbondata pull request #1379: [CARBONDATA-1151] Refactor all carbon command...

Posted by QiangCai <gi...@git.apache.org>.
Github user QiangCai commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1379#discussion_r140966782
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/AlterTableCompactionCommand.scala ---
    @@ -0,0 +1,91 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.execution.command.management
    +
    +import org.apache.spark.sql.{CarbonEnv, Row, SparkSession}
    +import org.apache.spark.sql.execution.command.{AlterTableModel, DataProcessCommand, RunnableCommand}
    +import org.apache.spark.sql.hive.CarbonRelation
    +
    +import org.apache.carbondata.common.logging.{LogService, LogServiceFactory}
    +import org.apache.carbondata.core.constants.CarbonCommonConstants
    +import org.apache.carbondata.core.util.CarbonProperties
    +import org.apache.carbondata.processing.model.{CarbonDataLoadSchema, CarbonLoadModel}
    +import org.apache.carbondata.spark.rdd.CarbonDataRDDFactory
    +
    +/**
    + * Command for the compaction in alter table command
    + */
    +case class AlterTableCompactionCommand(
    +    alterTableModel: AlterTableModel)
    +  extends RunnableCommand with DataProcessCommand {
    +
    +  val LOGGER: LogService = LogServiceFactory.getLogService(this.getClass.getName)
    --- End diff --
    
    move LOGGER into the processData method
    better to keep all commands serializable for the cloud scenario


---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    retest this please


---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 1.6, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/175/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/290/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 1.6, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/156/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/926/



---

[GitHub] carbondata pull request #1379: [CARBONDATA-1151] Refactor all carbon command...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1379#discussion_r140976823
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/AlterTableCompactionCommand.scala ---
    @@ -0,0 +1,91 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.execution.command.management
    +
    +import org.apache.spark.sql.{CarbonEnv, Row, SparkSession}
    +import org.apache.spark.sql.execution.command.{AlterTableModel, DataProcessCommand, RunnableCommand}
    +import org.apache.spark.sql.hive.CarbonRelation
    +
    +import org.apache.carbondata.common.logging.{LogService, LogServiceFactory}
    +import org.apache.carbondata.core.constants.CarbonCommonConstants
    +import org.apache.carbondata.core.util.CarbonProperties
    +import org.apache.carbondata.processing.model.{CarbonDataLoadSchema, CarbonLoadModel}
    +import org.apache.carbondata.spark.rdd.CarbonDataRDDFactory
    +
    +/**
    + * Command for the compaction in alter table command
    + */
    +case class AlterTableCompactionCommand(
    +    alterTableModel: AlterTableModel)
    +  extends RunnableCommand with DataProcessCommand {
    +
    +  val LOGGER: LogService = LogServiceFactory.getLogService(this.getClass.getName)
    --- End diff --
    
    ok, fixed


---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 1.6, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/157/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by QiangCai <gi...@git.apache.org>.
Github user QiangCai commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    LGTM


---

[GitHub] carbondata pull request #1379: [CARBONDATA-1151] Refactor all carbon command...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/carbondata/pull/1379


---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/300/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/295/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/921/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/282/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 1.6, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/158/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/283/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/912/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/281/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/913/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/914/



---

[GitHub] carbondata issue #1379: [CARBONDATA-1151] Refactor all carbon command to sep...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1379
  
    Build Success with Spark 1.6, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/165/



---