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

Support for temporary tables #6

Open
Tang8330 opened this issue May 9, 2023 · 1 comment
Open

Support for temporary tables #6

Tang8330 opened this issue May 9, 2023 · 1 comment

Comments

@Tang8330
Copy link

Tang8330 commented May 9, 2023

I'm unable to create a temporary table using SQL.

See logs:

CREATE TEMP TABLE IF NOT EXISTS _SESSION.customers_customers_custom_snapshot_foo (id int)
WARN[0011] Failed to execute merge...not going to flush memory  error="failed to create temp table, error: failed to run job: artie-labs.job_Fidyw28jRgs4CRXmHFQS87VP4YNl, Use of CREATE TEMPORARY TABLE requires a script or session: [{\"message\":\"Use of CREATE TEMPORARY TABLE requires a script or session\",\"reason\":\"invalid\"}]" tableName=customers_custom_snapshot
INFO[0011] Flushing via pool...                          error="<nil>"

Temporary tables: https://cloud.google.com/bigquery/docs/multi-statement-queries#create_temporary_table

@Tang8330
Copy link
Author

Tang8330 commented May 9, 2023

I worked around this issue by just creating a normal table and setting a TTL on it. Not sure why temp tables aren't working though.

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