We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Using the CASE WHEN statement in ARRAY.
select [case when col1>0 then true else false end,case when col1>0 then true else false end];
perhaps this is a good place to give it a try.
https://github.com/apache/arrow-datafusion/blob/62816370822cb5e16a46d5050a41f62016af917f/datafusion/sql/src/expr/value.rs#L128-L151
No response
The text was updated successfully, but these errors were encountered:
I'm not sure if this feature should be included in the discussion on the following issue: #6980.
Sorry, something went wrong.
I found another way to make this work.
select make_array(case when 1>0 then true else false end,case when 2>0 then true else false end);
Successfully merging a pull request may close this issue.
Is your feature request related to a problem or challenge?
Using the CASE WHEN statement in ARRAY.
select [case when col1>0 then true else false end,case when col1>0 then true else false end];
Describe the solution you'd like
select [case when col1>0 then true else false end,case when col1>0 then true else false end];
Describe alternatives you've considered
perhaps this is a good place to give it a try.
https://github.com/apache/arrow-datafusion/blob/62816370822cb5e16a46d5050a41f62016af917f/datafusion/sql/src/expr/value.rs#L128-L151
Additional context
No response
The text was updated successfully, but these errors were encountered: