zabetak opened a new pull request, #6323:
URL: https://github.com/apache/hive/pull/6323

   ### 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_.*
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to