-
Notifications
You must be signed in to change notification settings - Fork 310
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
None or empty array parameter values aren't handled in the dbapi #609
Comments
FTR, I have a local fix that I'll finalize after I finish getting sqlalchemy compliance tests to pass. |
@jimfulton If the fix touches the Cursor code and might cause conflicts, I suggest reviewing and merging two existing DB API PRs first, and then rebasing on top of that. |
But wait, there's more! The dry-run trick fails with:
when the value passed for The server side guesses type of
Arguably, a sophisticated analysis would decide the type of In the case of SQLAlchemy, it happens that we know the type of the parameter. If we could somehow get to BQ, we could avoid the dry-run call. Or maybe this should be viewed as a BQ time-inference bug. I think I'll skip the relevant SQLAlchemy-dialect tests until I get a read on that. :) |
It seems, according to https://issuetracker.google.com/issues/185823434, that the dry-run feature isn't meant for determining parameter types. |
Because:
We decided to extend the parameter syntax to provide type information. |
The same issue applies to empty array (
[]
) parameters.The text was updated successfully, but these errors were encountered: