rahil-c commented on code in PR #18036:
URL: https://github.com/apache/hudi/pull/18036#discussion_r2915074821


##########
hudi-spark-datasource/hudi-spark4.0.x/src/main/scala/org/apache/spark/sql/avro/AvroDeserializer.scala:
##########
@@ -218,6 +218,37 @@ private[sql] class AvroDeserializer(rootAvroType: Schema,
         val decimal = createDecimal(bigDecimal, d.getPrecision, d.getScale)
         updater.setDecimal(ordinal, decimal)
 
+      case (RECORD, VariantType) if avroType.getProp("logicalType") == 
"variant" =>

Review Comment:
   Do we have to check with the string literal or can we use some function on 
the avroType like `avroType.getLogicalType`?



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