-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIR-32802 use catalog parameter in getTables() & getColumns() #404
Conversation
Not sure If catalogs are officially supported yet. Let's check with the relevant team before making changes. We have the columns, but do they actually represent what we want? |
No, it is just a bug. We took catalog into consideration into |
d860191
to
1a3a186
Compare
We can't assume this as it's incorrect. We're aiming for Postgres compatibility and in Postgres catalog has a specific meaning. JDBC spec also has these two separate.
Yes, but unless it's meaningful we can't start using it. That's why I'm suggesting checking with a relevant team. |
Again, the API exists. getCatalogs() returns one line that contain the DB name. This means that for consistency getSchemas(), getTables() and getColumns() should respect this parameter as well. At least their result should depend on the value of catalog. At least if the value is "correct", i.e. equals to one that returned by getCatalogs() the list should not be empty; otherwise should be empty. |
I believe just because we're doing something already doesn't mean it's correct. What I'm saying is, please verify "catalog" matches across the board in get* calls and will stay that way. |
It seems like catalogs are already supported and return the same value that postgres does |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though heads-up this might be a high risk change - we're starting to filter based on previously unfiltered value. Despite this being the "right" way some users might rely on the previous functionality. Let's make sure we at least bump the minor version and include a note in release notes.
No description provided.