You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/05/27 20:52:35 UTC

[GitHub] [spark] viirya commented on a change in pull request #28647: [SPARK-31828][SQL] Retain table properties at CreateTableLikeCommand

viirya commented on a change in pull request #28647:
URL: https://github.com/apache/spark/pull/28647#discussion_r431428218



##########
File path: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
##########
@@ -2632,7 +2632,6 @@ class HiveDDLSuite
       assert(source.properties("a") == "apple")
       sql("CREATE TABLE t LIKE s STORED AS parquet TBLPROPERTIES('f'='foo', 'b'='bar')")
       val table = catalog.getTableMetadata(TableIdentifier("t"))
-      assert(table.properties.get("a") === None)

Review comment:
       Based on the description of `CreateTableLikeCommand`:
   
   > The CatalogTable attributes copied from the source table are storage(inputFormat, outputFormat, serde, compressed, properties), schema, provider, partitionColumnNames, bucketSpec by default.
   
   So we don't say table properties are copied from source table too. Not sure about why we didn't copy table properties.
   
   I feel it is OK as seems copying original table properties should not be harmful. And we already copy storage properties.
   
   But we should update the doc together.
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org