Skip to content

Can not infer where a column is from but then the error message says that column is available? #4723

@cottrell

Description

@cottrell

What happened?

I'm not sure if this is a real bug or just a strange error message?

PRQL input

from data
join side:left other (other.id== data.id)
into A

from codes
into S

from A
select {
A.val
}

SQL output

Error: 
   ╭─[:7:3]
   │
 7A.val
   │   ──┬──  
   │     ╰──── Cannot infer where `A`.val is from. It could be any of [(119, {}), (116, {})]
   │ 
   │ Help: available columns: `A`.val
───╯

Expected SQL output

Any sql.

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