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

   ### What changes were proposed in this pull request?
   Execute immediate is part of programatic sql and hence need proper error 
handling. it can happen that we throw stack overflow because of complex queries 
being generated.
   We need to throw proper error.
   
   This PR proposes we throw analysisexception with proper error class.
   
   ### Why are the changes needed?
   So client can catch and act on proper error classes for exec immediate.
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes it adds new error
   
   
   ### How was this patch tested?
   Unit test
   
   
   ### 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: [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