HyukjinKwon commented on a change in pull request #33212:
URL: https://github.com/apache/spark/pull/33212#discussion_r672726759



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JacksonParser.scala
##########
@@ -405,10 +405,18 @@ class JacksonParser(
       schema.getFieldIndex(parser.getCurrentName) match {
         case Some(index) =>
           try {
-            row.update(index, fieldConverters(index).apply(parser))
+            val fieldValue = fieldConverters(index).apply(parser)

Review comment:
       I .. am not sure if we really need these complicated fix to address 
nullability mismatch (which is rather a corner case) to be honest. I wonder if 
there's a simpler approach, e.g.) simply warning on non-nullable columns?
   Just to be clear, I don't mind if other committers prefer to fix it.




-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to