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

[b/328439985] Convert negative SQRT operands to NULL in dialect.tdd #44

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

tanclary
Copy link
Collaborator

BigQuery throws an error when trying to compute the square root of a negative number. To prevent this, we wrap the operand in an IF that converts the current row to null if it is negative. This seems to align with Tableau's expectations.

@tanclary tanclary merged commit 7f5651d into looker-open-source:connector Mar 11, 2024
15 of 16 checks passed
@tanclary tanclary deleted the sqrt-safety branch March 11, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants