milevin opened a new issue, #5538:
URL: https://github.com/apache/arrow-datafusion/issues/5538
**Problem Statement**
This statement works:
```
select CASE 10.5 WHEN 0 THEN null ELSE 10 END as col;
```
This list of two statements don't:
```
create table res as
select CASE 10.5 WHEN 0 THEN null ELSE 10 END as col;
select * from res
```
**To Reproduce**
Place the above statements into any of the .sql files in
datafusion/core/tests/tpc-ds/ (e.g. 1.sql). Run the corresponding test (e.g.
tpcds_logical_q1.
**Expected behavior**
The statements should succeed because they seem to be valid SQL and because
the single statement succeeds.
**Additional context**
We hit this in SDF because we tend to generate multi-statement queries in
which all dependent tables are explicitly "create"-d in a statement.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]