diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3dbe19a..fac944e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,6 +15,6 @@ jobs: - name: Setup coursier cache uses: coursier/cache-action@v6.3 - name: Setup scala-cli - uses: VirtusLab/scala-cli-setup@v1.4.0 + uses: VirtusLab/scala-cli-setup@v1.5.1 - name: Run tests run: scala-cli test . --jvm temurin:11 diff --git a/project.scala b/project.scala index 1c4b8d2..0cf1427 100644 --- a/project.scala +++ b/project.scala @@ -1,4 +1,4 @@ -//> using scala "3.3.3" +//> using scala "3.3.4" //> using dep "org.apache.spark:spark-core_2.13:3.2.0" //> using dep "org.apache.spark:spark-sql_2.13:3.2.0" -//> using test.dep "org.scalatest::scalatest::3.2.16" +//> using test.dep "org.scalatest::scalatest::3.2.19" diff --git a/src/main/types/Encoder.scala b/src/main/types/Encoder.scala index b8cff2c..48f188d 100644 --- a/src/main/types/Encoder.scala +++ b/src/main/types/Encoder.scala @@ -172,7 +172,7 @@ object StructEncoder: } end fromMirrorImpl - inline given optFromMirror[A](using encoder: StructEncoder[A]): (Encoder[Option[A]] { type ColumnType = StructOptType[encoder.StructSchema] }) = + given optFromMirror[A](using encoder: StructEncoder[A]): (Encoder[Option[A]] { type ColumnType = StructOptType[encoder.StructSchema] }) = new Encoder[Option[A]]: override type ColumnType = StructOptType[encoder.StructSchema] override def encode(value: Option[A]): Any = value.map(encoder.encode).orNull