jackylee-ch commented on code in PR #15736: URL: https://github.com/apache/iceberg/pull/15736#discussion_r2980273410
########## docs/docs/spark-configuration.md: ########## @@ -112,6 +112,13 @@ Spark's built-in catalog supports existing v1 and v2 tables tracked in a Hive Me This configuration can use same Hive Metastore for both Iceberg and non-Iceberg tables. +`SparkSessionCatalog` is useful when you want `spark_catalog` to work with both Iceberg and non-Iceberg +tables in the same metastore. It is not a full replacement for a dedicated Iceberg catalog, though. +In Spark versions before 4.2.0, `SparkSessionCatalog` does not expose Iceberg's `system` namespace +(see SPARK-54760), so catalog-scoped SQL functions such as `system.bucket`, `system.days`, and +`system.iceberg_version` are not available through `spark_catalog`. To use those functions, configure a +separate Iceberg catalog with `org.apache.iceberg.spark.SparkCatalog` and call them through that catalog. Review Comment: done. -- 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]
