Pajaraja opened a new pull request, #51619:
URL: https://github.com/apache/spark/pull/51619

   ### What changes were proposed in this pull request?
   
   Catch case when there is a self reference in the anchor, and return an error 
message that this is an illegal rCTE.
   
   ### Why are the changes needed?
   
   Currently the cases where rCTEs are self referenced inside the anchor return 
unhelpful messages which happen due to the fact that the recursive CTE isn't 
defined at the time.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Different error messages.
   
   ### How was this patch tested?
   
   New golden file tests that check that cover cases with self references 
inside the anchor.
   
   ### Was this patch authored or co-authored using generative AI tooling?
    
   No.


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to