wayneguow commented on code in PR #47582: URL: https://github.com/apache/spark/pull/47582#discussion_r1705604844
########## connector/avro/src/main/scala/org/apache/spark/sql/avro/AvroDeserializer.scala: ########## @@ -194,6 +200,9 @@ private[sql] class AvroDeserializer( case (FLOAT, FloatType) => (updater, ordinal, value) => updater.setFloat(ordinal, value.asInstanceOf[Float]) + case (FLOAT, DoubleType) => (updater, ordinal, value) => + updater.setDouble(ordinal, value.asInstanceOf[Float].toString.toDouble) Review Comment: It calls toDouble directly, just like in the code above `numeric.toDouble(b)`. <img width="611" alt="image" src="https://github.com/user-attachments/assets/44272b0a-2366-46fb-a39d-26342dc5a230"> -- 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