Skip to content
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(mssql): handle ibis error when sql with invalid syntax #839

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

grieve54706
Copy link
Contributor

We found the error 'NoneType' object has no attribute 'lower'.
This issue arises because Ibis invokes the lower() function on a None value when using _get_schema_using_query().
This PR addresses this by implementing error handling to capture this specific scenario and attempt to extract a more informative error message.
Moreover, we will continue following Ibis issue ibis-project/ibis#10331.

@github-actions github-actions bot added ibis python Pull requests that update Python code labels Oct 18, 2024
@grieve54706
Copy link
Contributor Author

Ibis handles this issue at ibis-project/ibis#10332. If we have time to wait for the ibis release, we can close this PR.

Copy link
Contributor

@goldmedal goldmedal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@goldmedal
Copy link
Contributor

Ibis handles this issue at ibis-project/ibis#10332. If we have time to wait for the ibis release, we can close this PR.

Filed #840 to trace it

@grieve54706 grieve54706 merged commit f4626dc into main Oct 21, 2024
7 checks passed
@grieve54706 grieve54706 deleted the bugfix/nonetype-no-attr-lower branch October 21, 2024 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ibis python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants