danny0405 commented on code in PR #8683:
URL: https://github.com/apache/hudi/pull/8683#discussion_r1192910419


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala:
##########
@@ -58,33 +58,37 @@ private[sql] object SchemaConverters {
 
   private val unionFieldMemberPrefix = "member"
 
+  private def extractDoc(doc: String): Option[String] = {
+    if(doc == null) Option.empty
+    else Option(doc)

Review Comment:
   Does `Option.ofNullable` work correctly here?



-- 
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]

Reply via email to