shardulm94 commented on a change in pull request #31597:
URL: https://github.com/apache/spark/pull/31597#discussion_r581253175
##########
File path:
core/src/main/scala/org/apache/spark/serializer/GenericAvroSerializer.scala
##########
@@ -44,8 +44,8 @@ import org.apache.spark.util.Utils
* string representation of the Avro schema, used to decrease
the amount of data
* that needs to be serialized.
*/
-private[serializer] class GenericAvroSerializer(schemas: Map[Long, String])
- extends KSerializer[GenericRecord] {
+private[serializer] class GenericAvroSerializer[D >: Null <: GenericContainer]
Review comment:
We need to pass in a null at
https://github.com/apache/spark/blob/735246119836f20811c67193f778246e1157e63e/core/src/main/scala/org/apache/spark/serializer/GenericAvroSerializer.scala#L155
where the compiler expects `D`. Without the lower bound, the Scala compiler
won't let me do that.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]