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
---