cloud-fan commented on a change in pull request #25747: [SPARK-29039][SQL] 
centralize the catalog and table lookup logic
URL: https://github.com/apache/spark/pull/25747#discussion_r322861848
 
 

 ##########
 File path: 
sql/catalyst/src/main/java/org/apache/spark/sql/catalog/v2/utils/CatalogV2Util.scala
 ##########
 @@ -214,12 +217,52 @@ object CatalogV2Util {
     new StructType(newFields)
   }
 
-  def loadTable(catalog: CatalogPlugin, ident: Identifier): Option[Table] =
+  def loadV2Table(catalog: CatalogPlugin, ident: Identifier): Option[Table] =
     try {
-      Option(catalog.asTableCatalog.loadTable(ident))
+      
Option(catalog.asTableCatalog.loadTable(ident)).filterNot(_.isInstanceOf[V1Table])
     } catch {
       case _: NoSuchTableException => None
       case _: NoSuchDatabaseException => None
       case _: NoSuchNamespaceException => None
     }
+
+  def convertTableProperties(
 
 Review comment:
   moved from 
https://github.com/apache/spark/pull/25747/files#diff-acba0f0ea96f6511882f4ead4fb33dc2L338

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to