steFaiz opened a new pull request, #7219: URL: https://github.com/apache/paimon/pull/7219
This PR tries to fix NPE when writing blobs with blob-as-descriptor = true and flink uses paimon as connector mode (not catalog mode) The NPE happens in uriReaderFactory https://github.com/apache/paimon/blob/7ec86cb99b46b3c8dbbd17aa73c75c6548e5a481/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/FlinkRowWrapper.java#L149-L153 This is because if flink use paimon in connector mode, the CatalogContext will be null: https://github.com/apache/paimon/blob/7ec86cb99b46b3c8dbbd17aa73c75c6548e5a481/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/AbstractFlinkTableFactory.java#L157-L159 This PR just simply pass the context down(instead of creating an empty envrionment) <!-- Please specify the module before the PR name: [core] ... or [flink] ... --> ### Purpose <!-- Linking this pull request to the issue --> Linked issue: none <!-- What is the purpose of the change --> ### Tests <!-- List UT and IT cases to verify this change --> ### API and Format <!-- Does this change affect API or storage format --> ### Documentation <!-- Does this change introduce a new feature --> -- 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]
