Skip to content

Commit

Permalink
Fix scala 2.13 compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
grouzen committed Dec 10, 2023
1 parent faed18f commit 8391b98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import zio.stream._

import scala.annotation.nowarn

trait ParquetReader[A <: Product] {
trait ParquetReader[+A <: Product] {

def read(path: Path): ZStream[Scope, Throwable, A]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.apache.parquet.schema.{ MessageType, Type }
import zio._
import zio.schema.Schema

trait ParquetWriter[A <: Product] {
trait ParquetWriter[-A <: Product] {

def write(data: Chunk[A]): Task[Unit]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object ParquetIOSpec extends ZIOSpecDefault {
reader <- ZIO.service[ParquetReader[Record]]
_ <- writer.write(payload)
_ <- writer.close // force to flush parquet data on disk
result <- ZIO.scoped(reader.read(tmpPath).runCollect)
result <- ZIO.scoped[Any](reader.read(tmpPath).runCollect)
} yield assertTrue(result == payload)
}.provide(
ParquetWriter.configured[Record](tmpPath),
Expand Down

0 comments on commit 8391b98

Please sign in to comment.