bryanck commented on code in PR #18800:
URL: https://github.com/apache/iceberg/pull/18800#discussion_r4801917665
##########
core/src/main/java/org/apache/iceberg/formats/FormatModelRegistry.java:
##########
@@ -218,7 +218,11 @@ private static void registerSupportedFormats() {
@SuppressWarnings("CatchBlockLogException")
private static void register(String classToRegister) {
try {
-
DynMethods.builder("register").impl(classToRegister).buildStaticChecked().invoke();
+ DynMethods.builder("register")
+ .loader(FormatModelRegistry.class.getClassLoader())
Review Comment:
Falling back to the thread context loader will resurface the issue described
in https://github.com/apache/iceberg/pull/19310. That is, in Spark, if the
thread context loader is ExecutorClassLoader, that will end up throwing a
RemoteClassLoaderError which is not caught.
--
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]