-
Notifications
You must be signed in to change notification settings - Fork 100
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
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #326
Comments
We'll have a fix for this merged into the connector shortly. Meanwhile, you can fix this by pinning your pandas dependency to pandas 2.1.x. The same issue happened with dbt-databricks (which depends on this connector) and was fixed in databricks/dbt-databricks#564 |
The fix will be incorporated into the 3.0.2 release shortly. |
Out of curiosity is the fix also included in version < 3.0.0? I've executed that on version |
I don't think this was back-ported. So you will need to pin to a lower pandas version even on databricks-sql-connector <= 3.0.0 |
Getting "TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'" while executing query on databricks.
Environment:
OS: Mac
Python: 3.9.6
Requirements:
Traceback:
As per my initial findings. when the query result has all the integer columns the df to numpy conversion is raising this issue.
res = df.to_numpy(na_value=None)
Example Query to recreate this issue.
SELECT 1
The text was updated successfully, but these errors were encountered: