Skip to content

Compile crash on from {} #4317

Closed
Closed

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

Activity

  1. added
    bug
    on Mar 7, 2024
  2. m-span commented on Jun 5, 2024

    @m-span
    Collaborator

    #4538 created to temporarily prevent crash

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

  3. added a commit that references this issue on Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions