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

Make sure we cast when NULL is else in CASE expressions #1651

Closed
wants to merge 9 commits into from

Fix generic compiler tests

  • Loading branch information...
cpcloud committed Oct 10, 2018
commit 0bade38faf6f1ea747b29621933c6af0c1bf5323
@@ -1760,7 +1760,7 @@ def test_case_in_projection(self):
CASE
WHEN `g` = 'foo' THEN 'bar'
WHEN `g` = 'baz' THEN `g`
ELSE NULL
ELSE CAST(NULL AS string)
END AS `col2`, *
FROM alltypes"""
assert result == expected
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.