huaxingao commented on code in PR #18800:
URL: https://github.com/apache/iceberg/pull/18800#discussion_r4807816675
##########
core/src/test/java/org/apache/iceberg/TestInternalData.java:
##########
@@ -174,6 +178,48 @@ public void
registerToleratesExceptionInInitializerErrorOnInvoke() {
assertThatNoException().isThrownBy(() ->
register(ThrowsInitErrorOnInvoke.class.getName()));
}
+ @Test
+ void registersParquetWhenTheContextClassLoaderCannotSeeIceberg() throws
Exception {
Review Comment:
Thanks. Fixed.
##########
data/src/test/java/org/apache/iceberg/data/TestGenericFormatModel.java:
##########
@@ -70,4 +80,42 @@ protected Object convertConstantToEngine(Type type, Object
value) {
// (LocalDate, LocalDateTime, ...) so reads match the generic comparison
in DataTestHelpers.
return GenericDataUtil.internalToGeneric(type, value);
}
+
+ @Test
+ void registersModelsWhenTheContextClassLoaderCannotSeeIceberg() throws
Exception {
Review Comment:
Fixed. Thanks.
--
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]