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

Query fails with "NULL is invalid as a DataFusion scalar value" #180

Closed
andygrove opened this issue Aug 30, 2022 · 1 comment · Fixed by #182
Closed

Query fails with "NULL is invalid as a DataFusion scalar value" #180

andygrove opened this issue Aug 30, 2022 · 1 comment · Fixed by #182
Labels
bug Something isn't working

Comments

@andygrove
Copy link
Member

Describe the bug

I am trying to run the following query in Ballista:

>>> ctx.sql("SELECT CASE WHEN x > 5 THEN x ELSE NULL END from y limit 10").show()

It fails with:

Exception: Internal error: failed to serialize logical plan: Plan("NULL is invalid as a DataFusion scalar value"). This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker

The same query is working for me with DataFusion 11.0.0

To Reproduce
See above

Expected behavior
Should work

Additional context
None

@andygrove andygrove added the bug Something isn't working label Aug 30, 2022
@andygrove
Copy link
Member Author

Root cause: apache/datafusion#3302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant