gh-yzou commented on code in PR #1427:
URL: https://github.com/apache/polaris/pull/1427#discussion_r2059542014
##########
plugins/spark/v3.5/spark/src/main/java/org/apache/polaris/spark/utils/PolarisCatalogUtils.java:
##########
@@ -50,6 +50,16 @@ public static boolean useDelta(String provider) {
return "delta".equalsIgnoreCase(provider);
}
+ /**
+ * For tables whose location is manged by Spark Session Catalog, there will
be no location or path
+ * in the properties.
+ */
+ public static boolean isTableWithSparkManagedLocation(Map<String, String>
properties) {
+ boolean hasLocationClause = properties.get(TableCatalog.PROP_LOCATION) !=
null;
+ boolean hasPathClause = properties.get(TABLE_PATH_KEY) != null;
Review Comment:
updated
--
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]