AnishMahto commented on code in PR #60680:
URL: https://github.com/apache/spark/pull/60680#discussion_r4622188095


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2SessionCatalog.scala:
##########
@@ -294,8 +294,18 @@ class V2SessionCatalog(catalog: SessionCatalog)
     val properties = 
CatalogV2Util.applyPropertiesChanges(catalogTable.properties, changes)
     val schema = CatalogV2Util.applySchemaChanges(
       catalogTable.schema, changes, catalogTable.provider, "ALTER TABLE")
-    val comment = properties.get(TableCatalog.PROP_COMMENT)
-    val collation = properties.get(TableCatalog.PROP_COLLATION)
+    // The dedicated CatalogTable fields hold these values, not properties; 
keep them unless a
+    // change names the key.

Review Comment:
   Nit: `createTable0` copies every v2 property, `comment` and `collation` 
included, into `CatalogTable.properties`, so an in-memory table created through 
this catalog does have them there. Maybe: "These live in dedicated CatalogTable 
fields and `properties` may not hold them; keep the fields unless a change 
names the key."



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to