badalprasadsingh opened a new issue, #1210: URL: https://github.com/apache/iceberg-go/issues/1210
### Apache Iceberg version main (development) ### Please describe the bug 🐞 ## Description The SQL Catalog registrar in `catalog/sql/sql.go` ignores the catalog name passed to `catalog.Load(ctx, name, props)`, and threads it through `Properties.Get(name, "sql")`. It tries to find the key which is equal to the catalog name. This breaks cross-engine interoperability. A catalog loaded as `catalog.Load(ctx, "<catalog_name>", ...)` stores metadata with `catalog_name='sql'`, while Spark, configured with Iceberg Java JDBC catalog use `catalog_name='<catalog_name>'` ## Proposed Solution Pass `c.name` as the name the to `catalog.Load`, so a `catalog.Load(ctx, "<catalog_name>", …)` shares the same catalog name row space as Spark or any other caller. -- 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]
