huaxingao opened a new pull request, #18800: URL: https://github.com/apache/iceberg/pull/18800
InternalData registers Parquet once, by looking up InternalParquet through the current thread's context class loader. If the first thread to use InternalData cannot see Iceberg's classes, Parquet is never registered, and every later Parquet metadata read or write in that JVM fails with "Cannot write using unregistered internal data format: PARQUET". This change looks up InternalParquet with InternalData's own class loader, as CatalogUtil and HTTPClient already do for their lookups. Test: `TestInternalDataRegistration` initializes a separate copy of Iceberg on a thread with a null context class loader and writes Parquet through it. It fails without this change. -- 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]
