Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shnapz committed Dec 18, 2023
1 parent 4a132b5 commit 1673bf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ object ParquetAvroIO {
suffix: String = null
) {
val avroClass: Class[A] = ScioUtil.classOf[A]
val isSpecific: Boolean = classOf[SpecificRecord] isAssignableFrom ScioUtil.classOf[T]
val isSpecific: Boolean = classOf[SpecificRecord] isAssignableFrom avroClass
val readSchema: Schema =
if (isSpecific) ReflectData.get().getSchema(avroClass) else projection

Expand Down

0 comments on commit 1673bf2

Please sign in to comment.