You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FDW validator in pg_lake_iceberg used error messages that said
options were "only valid for writable catalog=\"rest\"" when they are
actually valid for read-only external catalog tables (both catalog=rest
and catalog=object_store). Similarly, "required for catalog=\"rest\""
omitted that the same options are required for catalog=object_store
read-only tables.
Changes:
- Reword all "only valid for" / "required for" error messages for
catalog_name, catalog_namespace, catalog_table_name, and read_only
to accurately describe which catalog types they apply to.
- Remove a dead "catalog_namespace required" check: it only applied to
REST read-only (object_store excluded), but the REST ALTER whitelist
never allows touching catalog_namespace and CREATE auto-fills a
default, so the path was unreachable.
- Clean up stale copy-pasted comments in ProcessAlterTable that
referenced "catalog_table_name only" in the object_store branch and
add a comment explaining the validator interaction.
- Add a comment in option.c noting that the remaining "required"
checks act as a safety net for ALTER DROP scenarios.
Tests:
- test_iceberg_catalog_option_validation_errors (test_writable_iceberg.py):
exercises the four "only valid for read-only external catalog tables"
rejection paths without needing external infrastructure.
- test_object_store_read_only_alter_drop_required_options
(test_object_store_catalog.py): exercises the two "required" paths
via ALTER FOREIGN TABLE OPTIONS (DROP ...) on an object_store
read-only table.
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: sfc-gh-npuka <naisila.puka@snowflake.com>
0 commit comments