We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In general CASE WHEN X THEN true ELSE false END could just be reduced to X. For example, a query seen in the wild contained:
CASE WHEN X THEN true ELSE false END
X
((CASE WHEN (( generic.__time ) >= (TIME_PARSE('2018-03-08 00:00:00.000', 'yyyy-MM-dd HH:mm:ss.SSS')) AND ( generic.__time ) < (TIME_PARSE('2018-03-09 00:00:00.000', 'yyyy-MM-dd HH:mm:ss.SSS'))) THEN true ELSE false END))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In general
CASE WHEN X THEN true ELSE false END
could just be reduced toX
. For example, a query seen in the wild contained:The text was updated successfully, but these errors were encountered: