mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
* fix(glue): populate CatalogId on GetDatabase and GetDatabases The Glue database responses never set CatalogId, so terraform-provider-aws built the aws_glue_catalog_database resource id as ":name" and failed with "unexpected format for ID, expected catalog-id:database-name". Resolve it per request from the caller's account, matching the convention LakeFormationService already uses, rather than persisting it with the database, so existing stores need no migration. Refs #2793 * fix(glue): set CatalogId at write time, backfill legacy rows on read Addresses review feedback: populating CatalogId on the read path mutated the Database instance owned by the store, so a GetDatabase call could persist a request-derived value. Set it when the database is created or updated instead. Reads only fill it in for rows persisted before the field existed, which is stable because the store is namespaced by account -- the same migrate-on-read AccountAwareStorageBackend already does for un-prefixed keys.