sfc-gh-dhuo commented on code in PR #37557:
URL: https://github.com/apache/spark/pull/37557#discussion_r948523999
##########
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:
Yeah, looks like there's unfortunately not much configurability for choosing
encodings in typical writer libraries; I saw this discussion from a couple
years ago on that topic for a similar question about wanting to target specific
encodings: https://www.mail-archive.com/[email protected]/msg11826.html
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]