Skip to content

Commit

Permalink
Update parquet-avro, parquet-hadoop to 1.14.0 (#967)
Browse files Browse the repository at this point in the history
Co-authored-by: Michel Davit <[email protected]>
  • Loading branch information
scala-steward and RustedBones authored May 16, 2024
1 parent 418c279 commit ea4437b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ val jodaTimeVersion = "2.12.7"
val munitVersion = "0.7.29"
val neo4jDriverVersion = "4.4.12"
val paigesVersion = "0.4.3"
val parquetVersion = "1.13.1"
val parquetVersion = "1.14.0"
val protobufVersion = "3.25.2"
val refinedVersion = "0.11.1"
val scalaCollectionCompatVersion = "2.12.0"
Expand Down
7 changes: 5 additions & 2 deletions parquet/src/main/scala/magnolify/parquet/ParquetType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import org.apache.parquet.io.api._
import org.apache.parquet.io.{InputFile, OutputFile}
import org.apache.parquet.schema.MessageType
import org.slf4j.LoggerFactory
import org.typelevel.scalaccompat.annotation.nowarn

sealed trait ParquetArray

Expand Down Expand Up @@ -126,8 +127,10 @@ object ParquetType {

override def init(context: hadoop.InitContext): hadoop.ReadSupport.ReadContext = {
if (parquetType == null) {
parquetType =
SerializationUtils.fromBase64[ParquetType[T]](context.getConfiguration.get(ReadTypeKey))
// Use deprecated getConfiguration
// Recommended getParquetConfiguration is only available for parquet 1.14+
val readKeyType = context.getConfiguration.get(ReadTypeKey): @nowarn("cat=deprecation")
parquetType = SerializationUtils.fromBase64[ParquetType[T]](readKeyType)
}

val metadata = context.getKeyValueMetadata
Expand Down
2 changes: 1 addition & 1 deletion scalafix/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def magnolify(version: String): List[ModuleID] = {
"com.google.cloud.datastore" % "datastore-v1-proto-client" % "2.18.4",
"com.google.guava" % "guava" % "33.1.0-jre",
"org.neo4j.driver" % "neo4j-java-driver" % "4.4.12",
"org.apache.parquet" % "parquet-hadoop" % "1.13.1",
"org.apache.parquet" % "parquet-hadoop" % "1.14.0",
"com.google.protobuf" % "protobuf-java" % "3.25.3",
"eu.timepit" %% "refined" % "0.11.1",
"org.scalacheck" %% "scalacheck" % "1.17.1",
Expand Down

0 comments on commit ea4437b

Please sign in to comment.