huaxingao commented on code in PR #15359:
URL: https://github.com/apache/iceberg/pull/15359#discussion_r2825088239
##########
spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/source/IcebergSource.java:
##########
@@ -48,19 +48,21 @@
import org.apache.spark.sql.util.CaseInsensitiveStringMap;
/**
- * The IcebergSource loads/writes tables with format "iceberg". It can load
paths and tables.
+ * Data source for reading and writing Iceberg tables using the "iceberg"
format.
*
- * <p>How paths/tables are loaded when using
spark.read().format("iceberg").load(table)
+ * <p>The `path` parameter provided by Spark is resolved in the following
priority order:
*
- * <p>table = "file:///path/to/table" -> loads a HadoopTable at given path
table = "tablename"
- * -> loads currentCatalog.currentNamespace.tablename table =
"catalog.tablename" -> load
- * "tablename" from the specified catalog. table = "namespace.tablename" ->
load
- * "namespace.tablename" from current catalog table =
"catalog.namespace.tablename" ->
- * "namespace.tablename" from the specified catalog. table =
"namespace1.namespace2.tablename" ->
- * load "namespace1.namespace2.tablename" from current catalog
- *
- * <p>The above list is in order of priority. For example: a matching catalog
will take priority
- * over any namespace resolution.
+ * <ol>
+ * <li>Rewrite key - If `path` is a key in the table cache, load from the
rewrite catalog
Review Comment:
nit: maybe `cache catalog` instead of `rewrite catalog`?
--
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]