Skip to content

Compile crash on from {} #4317

@vanillajonathan

Description

@vanillajonathan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugInvalid compiler output or panic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions