[v25.1.x] iceberg: a couple fixes found working with Glue + Redshift#27205
Merged
andrwng merged 2 commits intoredpanda-data:v25.1.xfrom Aug 12, 2025
Merged
Conversation
Glue doesn't support the purge option when dropping tables, returning a
400 error immediately, even after the underlying table has been dropped:
```
WARN 2025-08-08 19:00:21,698 [shard 0:main] iceberg - catalog_client.cc:367 - [/iceberg/v1/catalogs/12345/namespaces/redpanda/tables/table?purgeRequested=true] error: http_call_error: Bad Request, message: '{"error":{"code":400,"message":"PurgeRequested cannot be true for Glue iceberg tables.","type":"InvalidInputException"}}'
```
When in this state, translation for this topic and all other topics of
the same name is stuck indefinitely, because when
redpanda.iceberg.delete is true, we will try to drop the table of older
versions of the topic before allowing creation of the new table.
This commit adds a stop-gap to at least be able to get unstuck by
manually deleting the table. When dropping, we'll first check if the
dropped table has been deleted already.
(cherry picked from commit 8dd12da)
Redshift complains when using an null 'partitions' field in the manifest list: ``` ERROR: Wrong type in Avro file. Detail: ----------------------------------------------- error: Wrong type in Avro file. code: 15003 context: Field: partitions. Expected: 12. Got: 7 query: -1[child_sequence:1] location: avro_utils.hpp:55 process: padbmaster [pid=1073913955] ----------------------------------------------- [ErrorId: 1-68963282-20644b700a198f806702f6aa] ``` This fix has Redpanda serialize empty 'partitions' as an empty array. Tested manually against Glue and Redshift. (cherry picked from commit 61c9992)
andrwng
approved these changes
Aug 11, 2025
Collaborator
Author
CI test resultstest results on build#70575
|
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.
Backport of PR #27188