MaxGekk opened a new pull request #27264: [SPARK-30554][SQL] Return `Iterable` 
from `FailureSafeParser.rawParser`
URL: https://github.com/apache/spark/pull/27264
 
 
   ### What changes were proposed in this pull request?
   Changed signature of `rawParser` passed to `FailureSafeParser`. I propose to 
change return type from `Seq` to `Iterable`. I took `Iterable` to easier port 
the changes on Scala collections 2.13. Also, I replace `Seq` by `Option` in CSV 
datasource - `UnivocityParser`, and in JSON parser exception one place in the 
case when specified schema is `StructType`, and JSON input is an array. 
   
   ### Why are the changes needed?
   `Seq` is unnecessary requirement for return type from rawParser which may 
not have multiple rows per input like CSV datasource. 
   
   ### Does this PR introduce any user-facing change?
   No
   
   ### How was this patch tested?
   By existing test suites `JsonSuite`, `UnivocityParserSuite`, 
`JsonFunctionsSuite`, `JsonExpressionsSuite`, `CsvSuite`, and 
`CsvFunctionsSuite`.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to