llphxd opened a new pull request, #6651: URL: https://github.com/apache/paimon/pull/6651
<!-- Please specify the module before the PR name: [core] ... or [flink] ... --> ### Purpose <!-- Linking this pull request to the issue --> Linked issue: close #6650 <!-- What is the purpose of the change --> This PR fixes the inconsistency between sequence.field and primary-key when parsing comma‑separated field lists. Currently, sequence.field = 'op_ts, updated_ts' is parsed as ["op_ts", " updated_ts"] (with a leading space), causing validation to fail with: > Caused by: java.lang.IllegalArgumentException: Sequence field: ' updated_ts' can not be found in table schema. This change makes CoreOptions.sequenceField() trim spaces around each field name, so sequence.field behaves the same as primary-key. ### Tests <!-- List UT and IT cases to verify this change --> - Added `CoreOptionsTest#testSequenceFieldTrim`. - Manually verified DDL with `'sequence.field' = 'op_ts, updated_ts'` in Spark. ### API and Format <!-- Does this change affect API or storage format --> No changes to public API. No changes to table storage format or metadata format. Only the parsing behavior of sequence.field options is made consistent with existing primary-key behavior. ### Documentation <!-- Does this change introduce a new feature --> No new features introduced. -- 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]
