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
@dhirschfeld any idea when this is going to make it to a release? Looks like it didn't go into 3.2.0 as I am unable to poetry install databricks-sql-connector in a project that includes pandas 2.2.2
Activity
dhirschfeld commentedon Feb 1, 2024
The pin was added in:
To fix the issue described in:
...but that just avoids the problem whilst causing another problem; this library can't be used with the latest
pandas:/dhirschfeld commentedon Feb 1, 2024
I'm opening this issue to track any progress towards compatibility with the latest
pandasversion.dhirschfeld commentedon Feb 23, 2024
Bump! I would like to upgrade to the latest version but am stuck on 3.0.1 because of this pin 😔
benc-db commentedon Mar 27, 2024
Does 3.0.1 work with latest pandas? That would be an interesting data point.
dhirschfeld commentedon May 29, 2024
I've been using 3.0.1 in combination with
pandas2.2.2 with no issues:...but that's apparently because I don't query all
intdata sources.Running:
gives:
dhirschfeld commentedon May 29, 2024
It seems like it doesn't like assigning a None into an integer array:
If we go up the stack we can see we get type errors if we try to assign anything other than an integer:
Casting to
objectbefore assigning does seem to work:dhirschfeld commentedon May 29, 2024
The problematic function:
databricks-sql-python/src/databricks/sql/client.py
Lines 1130 to 1166 in a6e9b11
dhirschfeld commentedon May 29, 2024
I can work around the issue by disabling pandas:
...but obviously the casting to numpy needs to be fixed.
dhirschfeld commentedon May 29, 2024
Probably casting to object before assigning a
Nonevalue is the right fix.diego-jd commentedon May 29, 2024
I second this. I cannot use
pd.read_sql_query()because of this requirement.Also, it would be good if you delete the distutils dependency
Aryik commentedon Jul 15, 2024
@dhirschfeld any idea when this is going to make it to a release? Looks like it didn't go into 3.2.0 as I am unable to
poetry install databricks-sql-connectorin a project that includes pandas 2.2.2dhirschfeld commentedon Jul 16, 2024
I'm not a maintainer here so I couldn't say.
I was hoping to do some more testing at some point, but haven't found the time.