Skip to content

HIVE-29466: Ambiguous table alias exception when using CTE suggester#6323

Open
zabetak wants to merge 1 commit intoapache:masterfrom
zabetak:HIVE-29466
Open

HIVE-29466: Ambiguous table alias exception when using CTE suggester#6323
zabetak wants to merge 1 commit intoapache:masterfrom
zabetak:HIVE-29466

Conversation

@zabetak
Copy link
Member

@zabetak zabetak commented Feb 17, 2026

What changes were proposed in this pull request?

Consider the alias from the TableSpool operator in the self-join ambiguity check

Why are the changes needed?

Avoid generating an ambiguous SQL and getting a SemanticException when using the CTE suggester which introduces TableSpool operators in the plan.

Does this PR introduce any user-facing change?

No

How was this patch tested?

mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile_regex=cbo_self_join.*
mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile_regex=cte_.*

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants