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

snowflake: GetObjects does not respect new database or schema context #2168

Open
davidhcoe opened this issue Sep 18, 2024 · 1 comment · May be fixed by #2169
Open

snowflake: GetObjects does not respect new database or schema context #2168

davidhcoe opened this issue Sep 18, 2024 · 1 comment · May be fixed by #2169
Labels
Type: bug Something isn't working

Comments

@davidhcoe
Copy link
Contributor

What happened?

When you call connection.SetOption("adbc.connection.catalog") or connection.SetOption("adbc.connection.db_schema") the context is not carried through to the connection.GetObjects(...) call, which results in the error:

[Snowflake] 090105 (22000): Cannot perform SELECT. This session does not have a current database. Call 'USE DATABASE', or use a qualified name.

For example. this occurs when you don't first set the adbc.snowflake.sql.db parameter or change it in your session.

Stack Trace

No response

How can we reproduce the bug?

No response

Environment/Setup

No response

@davidhcoe davidhcoe added the Type: bug Something isn't working label Sep 18, 2024
@davidhcoe
Copy link
Contributor Author

Proposed fix coming soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working
Projects
None yet
1 participant