Skip to content

tpcds_logical_q8 ambiguous name. #5334

@jackwener

Description

@jackwener

Describe the bug
ambiguous name problem due to q8

Error: Context("type_coercion", Internal("Optimizer rule 'type_coercion' failed due to unexpected error: Schema error: Ambiguous reference to unqualified field 'ca_zip'"))

In q8, there is a sql like following:

select project x as ca_zip
intersect
select ca_zip from a1

->

(project x as ca_zip) left semi join (a1) on "ca_zip = a1.ca_zip".

To Reproduce
After set pub skip_failed_rules: bool, default = false, we can find it.

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions