You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.
I am trying to update our codebase to ibis 2.0 and started getting the ValueError("Unable to determine BigQuery dataset.") error when trying to fetch a table from BigQuery like this ibis_client.table("table", database="dataset").
I followed the traceback like this, starting at /ibis_bigquery/init.py, line 177
As mentioned earlier dataset is now None and nowhere in the stacktrace above did we set self.dataset, I probably can set the dataset before calling the table method but it feels to me like this is a bug?
This code also means that the bigquery table method makes two requests to bigquery one in the table method itself and one in the get_schema method that is called via the super method. Maybe we could make bq_table a cached property to avoid that?
The text was updated successfully, but these errors were encountered:
@saschahofmann I'm curious is there a difference between the syntax at the top vs
importibisimportibis_bigqueryconn=ibis_bigquery.connect(
project_id='some_project',
dataset_id='some_dataset'
)
table=conn.table('some_table')
# can compose queries on table now
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to update our codebase to ibis 2.0 and started getting the
ValueError("Unable to determine BigQuery dataset.")
error when trying to fetch a table from BigQuery like thisibis_client.table("table", database="dataset")
.I followed the traceback like this, starting at /ibis_bigquery/init.py, line 177
This calls the standard ibis table function /ibis/backends/base/sql/init.py line 41
which in turn calls the
get_schema
method in bigquery /ibis_bigquery/init.py, line 329 BUT only with a name (this will be important in a sec)Now we are trying to create the fully_qualified (/ibis_bigquery/init.py", line 183) name again but this time database is
None
!Which leads us to
_parse_project_and_dataset
in /ibis_bigquery/init.py, line 161As mentioned earlier dataset is now None and nowhere in the stacktrace above did we set
self.dataset
, I probably can set the dataset before calling the table method but it feels to me like this is a bug?This code also means that the bigquery table method makes two requests to bigquery one in the table method itself and one in the get_schema method that is called via the super method. Maybe we could make
bq_table
a cached property to avoid that?The text was updated successfully, but these errors were encountered: