You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2024/08/01 08:39:06 UTC

Re: [PR] [Spark]: Relocate the 'path' property in the table options to 'location' for better presentation [paimon]

JingsongLi commented on code in PR #3843:
URL: https://github.com/apache/paimon/pull/3843#discussion_r1699667928


##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/SparkTable.scala:
##########
@@ -60,6 +60,8 @@ case class SparkTable(table: Table)
           properties.put(CoreOptions.PRIMARY_KEY.key, String.join(",", table.primaryKeys))
         }
         properties.put(TableCatalog.PROP_PROVIDER, SparkSource.NAME)
+        val location = properties.remove(CoreOptions.PATH.key())

Review Comment:
   For other catalogs, we can check the location, if not equal, throw exception.



-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org