gengliangwang commented on code in PR #50519:
URL: https://github.com/apache/spark/pull/50519#discussion_r2036242353


##########
sql/catalyst/src/test/scala/org/apache/spark/sql/connector/catalog/InMemoryTableWithV2FilterCatalog.scala:
##########
@@ -43,4 +43,8 @@ class InMemoryTableWithV2FilterCatalog extends 
InMemoryTableCatalog {
     namespaces.putIfAbsent(ident.namespace.toList, Map())
     table
   }
+
+  override def createTable(ident: Identifier, tableInfo: TableInfo): Table = {
+    createTable(ident, tableInfo.columns(), tableInfo.partitions(), 
tableInfo.properties)

Review Comment:
   By default, `createTable(ident: Identifier, tableInfo: TableInfo)` falls 
back to the derecated create table methods
   However, the base class `InMemoryTableCatalog` overrides `createTable(ident: 
Identifier, tableInfo: TableInfo)`, and now we need to modify all the 
subclasses.
   Otherwise, create table execution will use the base class's 
`createTable(ident: Identifier, tableInfo: TableInfo)`



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