[ https://issues.apache.org/jira/browse/SPARK-26509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16761927#comment-16761927 ]
Nandor Kollar commented on SPARK-26509: --------------------------------------- [~yumwang] here's an example to reproduce this failure in a test: {code} class Test_SPARK_26509 extends ParquetCompatibilityTest with SharedSQLContext { test("failing test for Parquet V2 DELTA_BYTE_ARRAY") { val extraOptions = Map[String, String]( // Write a Parquet file with writer version2. ParquetOutputFormat.WRITER_VERSION -> ParquetProperties.WriterVersion.PARQUET_2_0.toString ) val hadoopConf = spark.sessionState.newHadoopConfWithOptions(extraOptions) withSQLConf(SQLConf.PARQUET_VECTORIZED_READER_ENABLED.key -> "true") { withTempPath { dir => val path = s"${dir.getCanonicalPath}/test.parquet" spark.range(1).selectExpr("('hello') AS i") .coalesce(1).write.options(extraOptions).mode("overwrite").parquet(path) spark.read.parquet(path).collect } } } } {code} > Parquet DELTA_BYTE_ARRAY is not supported in Spark 2.x's Vectorized Reader > -------------------------------------------------------------------------- > > Key: SPARK-26509 > URL: https://issues.apache.org/jira/browse/SPARK-26509 > Project: Spark > Issue Type: Bug > Components: Spark Core, SQL > Affects Versions: 2.4.0 > Reporter: Filipe Gonzaga Miranda > Priority: Major > Original Estimate: 40h > Remaining Estimate: 40h > > I get the exception below Spark 2.4 reading parquet files where some columns > are DELTA_BYTE_ARRAY encoded. > > {code:java} > java.lang.UnsupportedOperationException: Unsupported encoding: > DELTA_BYTE_ARRAY > > {code} > > If the property: > spark.sql.parquet.enableVectorizedReader is set to false that works > The parquet files were written with Parquet V2, and as far as I understand > the V2 is the version used in Spark 2.x. > I did not find any property to change which Parquet Version Spark uses (V1, > V2). > Is there anyway to benefit from the Vectorized Reader? Or this is something > like a new implementation to support this version? I would propose so. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org