bug: create_table(temp=True)
timing out due to slow table existence check
#9216
Labels
bug
Incorrect behavior inside of ibis
What happened?
create_table
for BigQuery backend may become inappropriately inefficient.bigquery.Backend.create_table(name, df, temp=True)
calls_register_in_memory_tables
, which calls_register_in_memory_table
, which checks if the table exists using:The problem for BigQuery is caused by the fact that BQ uses hidden datasets to store temp data (see
_make_session
function). These datasets are reused between sessions and may collect more and more tables within table expiration window. I've got 10s of thousands of temp tables. The listing for such large dataset takes minutes (hours, etc) and even causes request throttling from google side.I have to use this monkey-patching to bypass the issue:
What version of ibis are you using?
9.0.0.
What backend(s) are you using, if any?
BigQuery
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: