carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sounakr <...@git.apache.org>
Subject [GitHub] carbondata pull request #1469: [WIP] Spark-2.2 Carbon Integration - Phase 1
Date Sun, 26 Nov 2017 17:22:12 GMT
Github user sounakr commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1469#discussion_r153076529
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/strategy/DDLStrategy.scala
---
    @@ -155,6 +161,14 @@ class DDLStrategy(sparkSession: SparkSession) extends SparkStrategy
{
             val cmd =
               CreateDataSourceTableCommand(updatedCatalog, ignoreIfExists = mode == SaveMode.Ignore)
             ExecutedCommandExec(cmd) :: Nil
    +      case CreateDataSourceTableCommand(table, ignoreIfExists)
    +        if table.provider.get != DDLUtils.HIVE_PROVIDER
    +           && table.provider.get.equals("org.apache.spark.sql.CarbonSource")
=>
    +        val updatedCatalog =
    +          CarbonSource.updateCatalogTableWithCarbonSchema(table, sparkSession)
    +        val cmd =
    +          CreateDataSourceTableCommand(updatedCatalog, ignoreIfExists)
    --- End diff --
    
    Done


---

Mime
View raw message