Github user gengliangwang commented on a diff in the pull request:
https://github.com/apache/spark/pull/21380#discussion_r189827025
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/UnivocityParser.scala
---
@@ -196,7 +198,7 @@ class UnivocityParser(
}
def getPartialResult(): Option[InternalRow] = {
try {
- Some(convert(checkedTokens))
+ convert(checkedTokens).headOption
--- End diff --
@MaxGekk Maybe add this in PR description
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]