You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If project defines restrictive Scala flags like -Xfatal-warnings the compilation of generated specific records fail if there is a map in the schema.
SampleAvroClass.scala:69:9: match may not be exhaustive.
It would fail on the following input: (x: Any forSome x not in java.util.Map[?,?])
Corresponding fragment of the generated specific record:
case 4 => this.mapField = {
value match {
case (map: java.util.Map[_,_]) => {
scala.jdk.CollectionConverters.MapHasAsScala(map).asScala.toMap map { kvp =>
val key = kvp._1.toString
val value = kvp._2
(key, value.toString)
}
}
}
}.asInstanceOf[Map[String, String]]
I would opt for adding unchecked annotation in the generated code.
The text was updated successfully, but these errors were encountered:
If project defines restrictive Scala flags like
-Xfatal-warnings
the compilation of generated specific records fail if there is amap
in the schema.Corresponding fragment of the generated specific record:
I would opt for adding unchecked annotation in the generated code.
The text was updated successfully, but these errors were encountered: