findepi commented on code in PR #14349:
URL: https://github.com/apache/datafusion/pull/14349#discussion_r1936291719
##
datafusion/sqllogictest/test_files/case.slt:
##
@@ -289,12 +289,22 @@ query B
select case when a=1 then false end from foo;
false
-false
-false
-false
-
findepi merged PR #14349:
URL: https://github.com/apache/datafusion/pull/14349
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscr...@datafu
alamb commented on code in PR #14349:
URL: https://github.com/apache/datafusion/pull/14349#discussion_r1936101942
##
datafusion/sqllogictest/test_files/case.slt:
##
@@ -289,12 +289,22 @@ query B
select case when a=1 then false end from foo;
false
-false
-false
-false
-fa
findepi closed pull request #14349: Fix incorrect searched CASE optimization
URL: https://github.com/apache/datafusion/pull/14349
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
findepi commented on code in PR #14349:
URL: https://github.com/apache/datafusion/pull/14349#discussion_r1933432132
##
datafusion/sqllogictest/test_files/case.slt:
##
@@ -289,12 +289,22 @@ query B
select case when a=1 then false end from foo;
false
-false
-false
-false
-
findepi opened a new pull request, #14349:
URL: https://github.com/apache/datafusion/pull/14349
There is an optimization for searched CASE where values are of boolean type.
It was converting the expression like
CASE
WHEN X THEN A
WHEN Y THEN B
..