Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/21631#discussion_r197973962
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/UnivocityParser.scala
---
@@ -183,11 +183,19 @@ class UnivocityParser(
}
}
+ private lazy val doParse = if (schema.nonEmpty) {
--- End diff --
recheck: it seems `parse` is called in executor sides only, so we can add
`lazy` here to avoid unnecessary instantiation?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]