Skip to content

[core] Trim action names in partition.mark-done-action - #11244

Open
chenjian2664 wants to merge 1 commit into
apache:masterfrom
chenjian2664:chenjian2664/bytequay/trim-partition-mark-done-action-names
Open

chenjian2664 wants to merge 1 commit into
apache:masterfrom
chenjian2664:chenjian2664/bytequay/trim-partition-mark-done-action-names

Conversation

@chenjian2664

Copy link
Copy Markdown
Contributor

Purpose

partition.mark-done-action is split on commas, but the entries are not trimmed. A value written as 'success-file, done-partition' therefore fails with No enum constant org.apache.paimon.CoreOptions.PartitionMarkDoneAction. DONE_PARTITION when the mark-done actions are created. This breaks partition mark-done in the Flink sink, the mark_partition_done procedures, and listing partitions in the Hive catalog when mark-event is used.

Each entry is now trimmed before it is parsed, as is already done for sequence.field, bucket-key and other comma-separated options.

Tests

@chenjian2664
chenjian2664 marked this pull request as ready for review November 18, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant