HyukjinKwon commented on code in PR #56572:
URL: https://github.com/apache/spark/pull/56572#discussion_r3431994129


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JsonFileFormat.scala:
##########
@@ -102,19 +102,19 @@ case class JsonFileFormat() extends TextBasedFileFormat 
with DataSourceRegister
     }
 
     (file: PartitionedFile) => {
-      val parser = new JacksonParser(
+      def parser() = new JacksonParser(

Review Comment:
   I think you can make this lazy val instead



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to