Skip to content

Commit

Permalink
#787 #804 - stream
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-twiner committed Mar 21, 2024
1 parent be4c35e commit b880261
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dataset/src/main/scala/frameless/TypedEncoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,12 @@ object TypedEncoder {
object CollectionConversion {

implicit def seqToSeq[Y] = new CollectionConversion[Seq, Seq, Y] {

override def convert(c: Seq[Y]): Seq[Y] =
c match {
// Stream is produced
case _: Stream[Y]@unchecked => c.toVector.toSeq
case _ => c
case _: Stream[Y] @unchecked => c.toVector.toSeq
case _ => c
}
}

Expand Down

0 comments on commit b880261

Please sign in to comment.