You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/08/17 23:33:51 UTC
[GitHub] [spark] parthchandra commented on a diff in pull request #37557: [SPARK-40128][SQL] Make the VectorizedColumnReader recognize DELTA_LENGTH_BYTE_ARRAY as a standalone column encoding
parthchandra commented on code in PR #37557:
URL: https://github.com/apache/spark/pull/37557#discussion_r948527571
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetIOSuite.scala:
##########
@@ -1307,6 +1307,16 @@ class ParquetIOSuite extends QueryTest with ParquetTest with SharedSparkSession
}
}
+ test("SPARK-40128 read DELTA_LENGTH_BYTE_ARRAY encoded strings") {
+ withAllParquetReaders {
+ checkAnswer(
+ // "fruit" column in this file is encoded using DELTA_LENGTH_BYTE_ARRAY.
+ // The file comes from https://github.com/apache/parquet-testing
+ readResourceParquetFile("test-data/delta_length_byte_array.parquet"),
Review Comment:
One of the reasons I didn't include this in the list is because I found no way of actually creating a file with a DELTA_LENGTH_BYTE_ARRAY encoding. So yeah, it's hard to do !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org