We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was trying to make a temporary table on bigquery with this code:
import ibis from google.oauth2 import service_account credentials = service_account.Credentials.from_service_account_file( './service_account.json') con = ibis.bigquery.connect( project_id = "ajskdfce-demo", dataset_id = "dataset", credentials = credentials ) temp_df = con.table("some_table_id") temp_table = con.create_table("temp_table_name", temp_df, temp=True)
This causes an error (logs below). It works fine if I set temp=False.
8.0.0
BigQuery
Traceback (most recent call last): File "/Users/albertstanley/Code/ibis/create_temp_table.py", line 14, in <module> temp_table = con.create_table("temp_table_name", temp_df, database="dataset", temp=True) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ibis/backends/bigquery/__init__.py", line 955, in create_table dataset = self._session_dataset.dataset_id AttributeError: 'NoneType' object has no attribute 'dataset_id'
The text was updated successfully, but these errors were encountered:
Can you try with a pre-release?
pip install 'ibis-framework[bigquery]' --pre --upgrade
I believe we've already fixed this.
Sorry, something went wrong.
Looks like I'm still getting the error with the pre-release ('9.0.0.dev619').
Yep, thanks for the report. I am able to reproduce this. PR incoming.
fix(bigquery): ensure session creation before creating temp tables (#…
314abe4
…8976) Fixes #8975.
Successfully merging a pull request may close this issue.
What happened?
I was trying to make a temporary table on bigquery with this code:
This causes an error (logs below). It works fine if I set temp=False.
What version of ibis are you using?
8.0.0
What backend(s) are you using, if any?
BigQuery
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: