HyukjinKwon commented on a change in pull request #34009:
URL: https://github.com/apache/spark/pull/34009#discussion_r714436477
##########
File path:
external/avro/src/main/scala/org/apache/spark/sql/avro/AvroUtils.scala
##########
@@ -330,4 +332,9 @@ private[sql] object AvroUtils extends Logging {
case Seq() => "top-level record"
case n => s"field '${n.mkString(".")}'"
}
+
+ /** Return true iff `avroField` is nullable, i.e. `UNION` type and has
`NULL` as an option. */
+ private[avro] def isNullable(avroField: Schema.Field): Boolean =
Review comment:
```suggestion
private def isNullable(avroField: Schema.Field): Boolean =
```
--
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]