harshitaajoshi commented on issue #17300: URL: https://github.com/apache/iceberg/issues/17300#issuecomment-5112197595
Hi, I'd like to take a crack at this. The fix seems straightforward: use `conn.getCatalog()` instead of `null` in the `getColumns()` and `getTables()` calls so they're scoped to the current database. For the underscore wildcard issue in `iceberg_tables`, I'd use `dbMeta.getSearchStringEscape()` to stay portable across drivers. One question before I start: is `conn.getCatalog()` the right approach here, or would you prefer pulling the scope from a catalog property instead? I know MySQL returns the DB name from `getCatalog()` while PostgreSQL handles catalogs/schemas differently, so I want to make sure the fix works for both. Happy to include a regression test using Derby with two schemas to validate the cross-schema scenario that SQLite can't reproduce. -- 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]
