potiuk commented on pull request #22050:
URL: https://github.com/apache/airflow/pull/22050#issuecomment-1065933341
Hey @alexott - we seem to have a blocker for Python 3.10 enabling in
databicks-sql-connector (one of the last few blockers):
```
self = <databricks.sql.common.ParamEscaper object at 0x7fe81c6dd6c0>
item = ['file1', 'file2', 'file3']
def escape_item(self, item):
if item is None:
return 'NULL'
elif isinstance(item, (int, float)):
return self.escape_number(item)
elif isinstance(item, basestring):
return self.escape_string(item)
> elif isinstance(item, collections.Iterable):
E AttributeError: module 'collections' has no attribute 'Iterable'
```
https://github.com/apache/airflow/runs/5523057543?check_suite_focus=true#step:8:16781
This makes the connector unusable on Python 3.10 because finally Python 3.10
dropped the deprecated collections.abc aliases (in this case it should
colllections.abc.Iterable). I cannot find the sources and status of the
databricks library for that (maybe i do not know where to look for it). I see
that there is a 2.0.0b1 release and I wonder if:
a) it has the collections problem fixed
b) will we be able to move to the 2.0.0 version (currently we see <2.0.0 in
databricks).
This is really one of the last blockers for us to move to Python 3.10. I
could potentially disable databricks providers and tests for Python 3.10 but if
this will be fixed quickly, maybe we do not have to do it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]