Skip to content
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

JDBC: return all catalogs when catalogs name is skipped, like jdbc:presto://<host>:8080/ #3134

Open
WIgor opened this issue Jun 19, 2015 · 2 comments
Labels

Comments

@WIgor
Copy link
Contributor

WIgor commented Jun 19, 2015

Hi

In case of usage jdbc url without setting a catalogs name and calling DatabaseMetadata.getCatalogs()
it throws an exception "Catalog default does not exist".

Because in constructor of PrestoConnection you set such default values:
catalog.set("default");
schema.set("default");

I would propose to make special processing of such default case and return all catalogs, and same for getSchemas and others metadatas functions.

What do you think about such changes?

@electrum
Copy link
Contributor

The "default" stuff is old and needs to be removed. I think the right approach is to make catalog and schema optional in StatementResource, allowing running queries like "SHOW CATALOGS" or fully qualified queries.

@OmerJog
Copy link

OmerJog commented Mar 4, 2019

Was this resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants