yihua commented on code in PR #20871:
URL: https://github.com/apache/hudi/pull/20871#discussion_r4729546747
##########
hudi-hadoop-mr/src/test/java/org/apache/hudi/hadoop/testutils/InputFormatTestUtil.java:
##########
@@ -580,8 +580,9 @@ public static StoragePath
writeVariantParquetFile(java.nio.file.Path dir, String
HoodieSchema writeSchema = HoodieSchema.createRecord("TestRecord", null,
null, fields);
Configuration conf = new Configuration();
if (withInt96Timestamp) {
- // parquet-avro writes a fixed(12) as INT96 only for the paths named
here.
- conf.set(AvroWriteSupport.WRITE_FIXED_AS_INT96, "ts");
+ // parquet-avro writes a fixed(12) as INT96 only for the paths named
here. The property is set
+ // by its key, since AvroWriteSupport has no constant for it before
parquet 1.13.
+ conf.set("parquet.avro.writeFixedAsInt96", "ts");
Review Comment:
Fixed in 13fec7e21a89: the fixture now writes `ts` through an
`AvroWriteSupport` with an explicit INT96 parquet type, and the test asserts
INT96 in the footer of both files; `testLegacyReaderGuardIsBestEffort` fails
with FIXED_LEN_BYTE_ARRAY before and passes after under `-Dspark3.3`.
--
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]