vladimirg-db opened a new pull request, #46400:
URL: https://github.com/apache/spark/pull/46400

   # What changes were proposed in this pull request?
   New lightweight exception for control-flow between UnivocityParser and 
FalureSafeParser to speed-up malformed CSV parsing
   
   
   ### Why are the changes needed?
   Parsing in `PermissiveMode` is slow due to heavy exception construction 
(stacktrace filling + string template substitution in `SparkRuntimeException`)
   
   
   ### Does this PR introduce _any_ user-facing change?
   No, since `FailureSafeParser` unwraps `BadRecordException` and correctly 
rethrows exceptions in `FailFastMode`
   
   
   ### How was this patch tested?
   - `testOnly org.apache.spark.sql.catalyst.csv.UnivocityParserSuite`
   - Manually run csv benchmark on DB benchmark workspace
   - Manually checked correct and malformed csv in sherk-shell 
(org.apache.spark.SparkException is thrown with the stacktrace)
   
   
   ### 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