Skip to content

Commit

Permalink
Merge pull request #154 from spotify/neville/avro
Browse files Browse the repository at this point in the history
fix AvroCoder usage in scio-hdfs
  • Loading branch information
nevillelyh committed May 26, 2016
2 parents dd44578 + 3ca1942 commit 192dea7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ package object hdfs {
val coder: AvroCoder[T] = if (schema == null) {
AvroCoder.of(ScioUtil.classOf[T])
} else {
AvroCoder.of(schema).asInstanceOf[AvroCoder[T]]
AvroCoder.of(ScioUtil.classOf[T], schema)
}
val src = if (username != null) {
new SimpleAuthAvroHadoopFileSource[T](path, coder, username)
Expand Down

0 comments on commit 192dea7

Please sign in to comment.