diff --git a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala index 97477f4..7d56a51 100644 --- a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala +++ b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala @@ -3,8 +3,8 @@ package me.mnedokushev.zio.apache.parquet.core.hadoop import me.mnedokushev.zio.apache.parquet.core.Value.GroupValue.RecordValue import me.mnedokushev.zio.apache.parquet.core.codec.ValueDecoder import org.apache.hadoop.conf.Configuration -import org.apache.parquet.hadoop.{ ParquetReader => HadoopParquetReader } import org.apache.parquet.hadoop.api.{ ReadSupport => HadoopReadSupport } +import org.apache.parquet.hadoop.{ ParquetReader => HadoopParquetReader } import org.apache.parquet.io.InputFile import zio._ import zio.stream._ diff --git a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetWriter.scala b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetWriter.scala index 5837173..fc7fed2 100644 --- a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetWriter.scala +++ b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetWriter.scala @@ -3,10 +3,10 @@ package me.mnedokushev.zio.apache.parquet.core.hadoop import me.mnedokushev.zio.apache.parquet.core.Value.GroupValue.RecordValue import me.mnedokushev.zio.apache.parquet.core.codec.{ SchemaEncoder, ValueEncoder } import org.apache.hadoop.conf.Configuration -import org.apache.parquet.hadoop.{ ParquetFileWriter, ParquetWriter => HadoopParquetWriter } import org.apache.parquet.hadoop.api.{ WriteSupport => HadoopWriteSupport } import org.apache.parquet.hadoop.metadata.CompressionCodecName import org.apache.parquet.hadoop.util.HadoopOutputFile +import org.apache.parquet.hadoop.{ ParquetFileWriter, ParquetWriter => HadoopParquetWriter } import org.apache.parquet.io.OutputFile import org.apache.parquet.schema.{ MessageType, Type } import zio._ diff --git a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/WriteSupport.scala b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/WriteSupport.scala index b3b184f..fae1c8a 100644 --- a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/WriteSupport.scala +++ b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/WriteSupport.scala @@ -5,6 +5,7 @@ import org.apache.hadoop.conf.Configuration import org.apache.parquet.hadoop.api.{ WriteSupport => HadoopWriteSupport } import org.apache.parquet.io.api.RecordConsumer import org.apache.parquet.schema.MessageType + import scala.jdk.CollectionConverters._ class WriteSupport(schema: MessageType, metadata: Map[String, String]) extends HadoopWriteSupport[RecordValue] { diff --git a/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/codec/SchemaEncoderDeriverSpec.scala b/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/codec/SchemaEncoderDeriverSpec.scala index e1d1cd1..329b93d 100644 --- a/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/codec/SchemaEncoderDeriverSpec.scala +++ b/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/codec/SchemaEncoderDeriverSpec.scala @@ -2,7 +2,6 @@ package me.mnedokushev.zio.apache.parquet.core.codec import me.mnedokushev.zio.apache.parquet.core.Schemas import me.mnedokushev.zio.apache.parquet.core.Schemas.PrimitiveDef -//import org.apache.parquet.schema.Type import zio._ import zio.schema._ import zio.test._ diff --git a/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetIOSpec.scala b/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetIOSpec.scala index 033d0e3..d652802 100644 --- a/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetIOSpec.scala +++ b/modules/core/src/test/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetIOSpec.scala @@ -3,8 +3,8 @@ package me.mnedokushev.zio.apache.parquet.core.hadoop import me.mnedokushev.zio.apache.parquet.core.codec._ import zio._ import zio.schema._ -import zio.test._ import zio.test.TestAspect._ +import zio.test._ import java.nio.file.Files