### 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 ```elm from {} ``` ### SQL output ```SQL -- None ``` ### Expected SQL output _No response_ ### MVCE confirmation - [X] Minimal example - [x] New issue ### Anything else? _No response_
Activity
m-span commentedon 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/4317fix: prevent panic for issues #4474 and #4317 (#4538)
fix: Provide clear error for empty tuple/array in from (PRQL#4317)
fix: Provide clear error for empty tuple/array in from (PRQL#4317)