Skip to content

Ambiguous name: better error message #2951

@richb-hanover

Description

@richb-hanover

What's up?

I was writing the query below and was stumped by the "Ambiguous name" error message. As a newcomer, the terms "frame", "item", or "infer" don't help me know what to do.

Could the message say something like, Ambiguous name. Try adding a tablename: e.g. tablename.billing_city

Thanks.

from inv=invoices
join side:left item=invoice_items (==invoice_id) # join using column "invoice_id" in both tables
select [
  billing_city
]
Error: 
   ╭─[:4:3]
   │
 4 │   billing_city
   │   ──────┬──────  
   │         ╰──────── Ambiguous name. Could be from any of _frame.item._infer, _frame.inv._infer
───╯

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions