rdblue commented on code in PR #2639:
URL: https://github.com/apache/iceberg/pull/2639#discussion_r1155355992
##########
spark/v3.3/spark/src/test/java/org/apache/iceberg/spark/data/parquet/vectorized/TestParquetVectorizedReads.java:
##########
@@ -117,6 +122,26 @@ private void writeAndValidate(
setAndCheckArrowValidityVector,
reuseContainers,
batchSize);
+
+ // With encryption
+ testFile.delete();
+ try (FileAppender<GenericData.Record> writer =
getEncryptedParquetWriter(schema, testFile)) {
+ writer.addAll(expected);
+ }
+ Assert.assertThrows(
+ "Decrypted without keys",
+ ParquetCryptoRuntimeException.class,
+ () ->
+
Parquet.read(Files.localInput(testFile)).project(schema).callInit().build().iterator());
Review Comment:
This should not use `callInit` because that is related to `ReadSupport`. I
don't think this assertion is necessary anyway, so you should probably remove
it.
--
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]