Ankitkj1999 opened a new pull request, #19101: URL: https://github.com/apache/iceberg/pull/19101
When querying Iceberg metadata tables (such as `$files` or `$entries`) under engines like Flink with REST catalog credential vending, worker nodes fail with HTTP 403 errors because `FileIOParser.toJson` omits storage credentials from the serialized task. This change: 1. Adds package-private `StorageCredentialParser` to serialize/deserialize `StorageCredential` instances (`prefix` and `config`). 2. Updates `FileIOParser.toJson` to write `"storage-credentials"` when the `FileIO` implements `SupportsStorageCredentials`. 3. Updates `FileIOParser.fromJson` to parse credentials and pass them to `CatalogUtil.loadFileIO`. Closes #18934 Test Plan: - `TestStorageCredentialParser`: validation, missing fields, and round-trip serialization. - `TestFileIOParser`: round-trip with/without credentials, omission of empty credentials, and backwards compatibility with legacy JSON. - `TestFilesTableTaskParser`: scan task round-trip verifying credentials propagate across worker deserialization. --- **AI Disclosure** - Model: Gemini 3.8 Flash - Platform/Tool: Antigravity - Human Oversight: Fully reviewed and verified by author - Prompt Summary: Initial implementation of StorageCredentialParser, FileIOParser credential persistence, and accompanying unit tests. -- 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]
