diff --git a/spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/source/IcebergSource.java b/spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/source/IcebergSource.java index a0462e8f8982..28282eb1cc60 100644 --- a/spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/source/IcebergSource.java +++ b/spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/source/IcebergSource.java @@ -48,19 +48,15 @@ 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. * - *
How paths/tables are loaded when using spark.read().format("iceberg").load(table) + *
The `path` parameter provided by Spark is resolved in the following priority order: * - *
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 - * - *
The above list is in order of priority. For example: a matching catalog will take priority - * over any namespace resolution. + *