-
Notifications
You must be signed in to change notification settings - Fork 463
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
Fix/snowflake compatibility #2181
Fix/snowflake compatibility #2181
Conversation
c0a3183
to
a9b7d73
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After adding this line except (NoSuchTableError, IbisError)
then the UT pass
diff --git a/superduperdb/backends/ibis/data_backend.py b/superduperdb/backends/ibis/data_backend.py
index af3085ad2..bd0ec0462 100644
--- a/superduperdb/backends/ibis/data_backend.py
+++ b/superduperdb/backends/ibis/data_backend.py
@@ -5,7 +5,7 @@ from warnings import warn
import ibis
import pandas
from ibis.backends import BaseBackend
-
+from ibis.common.exceptions import IbisError
from pandas.core.frame import DataFrame
from sqlalchemy.exc import NoSuchTableError
@@ -153,7 +153,7 @@ class IbisDataBackend(BaseDataBackend):
try:
self.conn.table(f'_outputs.{predict_id}')
return True
- except NoSuchTableError:
+ except (NoSuchTableError, IbisError):
return False
a9b7d73
to
5c6a2b4
Compare
5c6a2b4
to
4028af1
Compare
Ah yes, thanks. This is because |
512d6d0
to
d2a7148
Compare
|
||
self.job_table = Table( | ||
'job', | ||
'JOB', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Snowflake doesn't work with lower case tables for some reason.
@@ -103,13 +93,6 @@ def _init_tables(self): | |||
*component_table_args, | |||
) | |||
|
|||
self.meta_table = Table( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used.
|
||
metadata = MetaData() | ||
self.query_id_table = Table( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used.
cc5e912
to
503e622
Compare
503e622
to
46c4020
Compare
We should update
ibis
for the latest features and support. This required a few fixes, which this PR provides.