srowen commented on a change in pull request #23336: [SPARK-26378][SQL] Restore
performance of queries against wide CSV tables
URL: https://github.com/apache/spark/pull/23336#discussion_r242531742
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/csv/UnivocityParser.scala
##########
@@ -82,7 +82,12 @@ class UnivocityParser(
// Retrieve the raw record string.
private def getCurrentInput: UTF8String = {
-
UTF8String.fromString(tokenizer.getContext.currentParsedContent().stripLineEnd)
+ val currentParsedContent = tokenizer.getContext.currentParsedContent()
+ if (currentParsedContent == null) {
+ UTF8String.fromString("")
Review comment:
UTF8String.EMPTY_UTF8
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]