iting0321 commented on code in PR #3723:
URL: https://github.com/apache/polaris/pull/3723#discussion_r2791807944


##########
plugins/spark/v3.5/spark/src/main/java/org/apache/polaris/spark/PolarisSparkCatalog.java:
##########
@@ -74,6 +74,9 @@ public Table loadTable(Identifier identifier) throws 
NoSuchTableException {
       // Currently Hudi supports Spark Datasource V1, therefore we return a 
V1Table
       if (PolarisCatalogUtils.useHudi(genericTable.getFormat())) {
         return PolarisCatalogUtils.loadV1SparkTable(genericTable, identifier, 
name());
+      } else if (PolarisCatalogUtils.usePaimon(genericTable.getFormat())) {
+        // Paimon uses DataSourceV2, so we return a V2Table
+        return PolarisCatalogUtils.loadV2SparkTable(genericTable);

Review Comment:
   Good catch. The else block already handles this by default, so I removed the 
redundant check in the latest commit.



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

Reply via email to