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

Compile crash on from {} #4317

Open
2 tasks done
vanillajonathan opened this issue Mar 7, 2024 · 1 comment
Open
2 tasks done

Compile crash on from {} #4317

vanillajonathan opened this issue Mar 7, 2024 · 1 comment
Labels
bug Invalid compiler output or panic

Comments

@vanillajonathan
Copy link
Collaborator

vanillajonathan commented Mar 7, 2024

What happened?

When using from {} or from [] the compiler crashes.

The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: prqlc/prqlc/src/semantic/resolver/functions.rs:279

PRQL input

from {}

SQL output

-- None

Expected SQL output

No response

MVCE confirmation

  • Minimal example
  • New issue

Anything else?

No response

@vanillajonathan vanillajonathan added the bug Invalid compiler output or panic label Mar 7, 2024
@m-span
Copy link
Collaborator

m-span commented Jun 5, 2024

#4538 created to temporarily prevent crash

now this input returns:
Error: internal compiler error; tracked at https://github.com/PRQL/prql/issues/4317

max-sixty added a commit that referenced this issue Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Invalid compiler output or panic
Projects
None yet
Development

No branches or pull requests

2 participants