shivadarshan-devadiga opened a new pull request, #55877:
URL: https://github.com/apache/spark/pull/55877

   ### What changes were proposed in this pull request?
   This PR converts IllegalArgumentException thrown by require() statements in 
CSVOptions to proper user-facing Spark errors with error classes
   
   
   ### Why are the changes needed?
   Currently, CSVOptions uses Scala's require() which throws generic 
IllegalArgumentException with plain text messages. This change aligns lineSep 
validation with Spark's error handling standards, making errors more actionable 
and consistent.
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes. The error messages for invalid lineSep values will change
   
   
   ### How was this patch tested?
   All SQL related tests were run including the linsep tests
   
   
   ### 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