ggershinsky commented on code in PR #2639:
URL: https://github.com/apache/iceberg/pull/2639#discussion_r1161545257
##########
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:
Ok, removing this assertion. Another type of encryption verification is done
later in this flow.
--
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]