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 pool sometimes persists a temporary table in one session then attempts to access it in another session #1815

Open
christopherswenson opened this issue Aug 8, 2024 · 1 comment

Comments

@christopherswenson
Copy link
Contributor

There does not seem to be any system in place to make sure that, for a single Malloy compile, the Snowflake connection only uses one session. Because of this, when compiling a Malloy model, the Snowflake connection might persist a query result using one session, then attempt to access that saved result in a different session, which fails.

453646274_518404927320126_7411236290798720652_n

This is an example of such a failure

This seems to be relevant code

This is an example of a test that might exhibit this behavior

@christopherswenson
Copy link
Contributor Author

Could possibly solve this by generating a "Malloy Compile ID" (UUID) in either the translator or the Runtime API, which would get passed to all connection operations, allowing the connection to ensure that the same session was used for the entirety of a Malloy compile lifecycle.

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

No branches or pull requests

1 participant