[core][flink][spark] Support OSS blob presigned URLs#8832
Open
jerry-024 wants to merge 7 commits into
Open
Conversation
JingsongLi
reviewed
Jul 26, 2026
|
|
||
| public JindoFileIO() {} | ||
|
|
||
| JindoFileIO(OSSClient blobClient) { |
Member
There was a problem hiding this comment.
@JingsongLi @jerry-024 LGTM for the changes to JindoFileIO. Just one minor comment.
sundapeng
reviewed
Jul 27, 2026
| endpoint = "https://" + endpoint; | ||
| } | ||
| String securityToken = options.get(OSS_SECURITY_TOKEN); | ||
| OSSClientBuilder builder = new OSSClientBuilder(); |
Member
There was a problem hiding this comment.
better to add region config to OssClientBuilder, fs key is fs.oss.region
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add catalog-aware Flink and Spark SQL functions that convert OSS-backed
BlobDescriptorvalues into short-lived HTTPS GET URLs. Paimon materializes only the descriptor's byte range as a suffix-free OSS object served asapplication/octet-stream, allowing downstream multimodal services to fetch the exact bytes without loading them into the query engine.Changes
FileIOandBlobwith blob presigned URL support, including delegation through resolving, caching, plugin, and REST-token file systems and validation that descriptors belong to the source table.descriptor_to_presigned_url(source_table, descriptor, validity)andtry_descriptor_to_presigned_url(...)functions for Flink and Spark, including catalog binding, literal source-table validation, whole-second interval validation, Spark analyzer resolution, and Flink compatibility support.application/octet-streambehavior.Testing
OSSFileIOTest#testCreateBlobPresignedUrlMaterializesSinglePartDescriptorToPresignedUrlFunctionTest#testTypeInferenceRequiresLiteralTableAndAcceptsIntervalDescriptorToPresignedUrlFunctionTest#testBindAndNonDeterministicapplication/octet-stream; returned bytes matched the source and the model consumed the URL successfullyNotes
source_tablemust be a non-null literal indatabase.tableform, orcatalog.database.tablefor the function's catalog.blob-as-descriptor=truebefore passing them to the function.