You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2026/08/03 03:40:26 UTC

Re: [PR] fix(spec): validate sequence.field against table schema [paimon-rust]

JingsongLi commented on PR #615:
URL: https://github.com/apache/paimon-rust/pull/615#issuecomment-5162046894

   - `Schema::validate_sequence_field` omits the `options.fieldAggFunc(field) == null` validation found in Java’s `SchemaValidation.validateSequenceField`.
   - Currently, Rust incorrectly accepts:
     `sequence.field=ts`
     `fields.ts.aggregate-function=sum`
   - I added a temporary regression test; it was expected to return an error from `build()`, but it actually returned `Ok(Schema)`. This issue has been consistently reproducible.
   - This is not only incompatible with Java; during a partial update, the sequence field may be skipped by the aggregation configuration logic, potentially leading to a situation where “the configuration is written to the metadata but is silently ignored in practice.”
   - I recommend that `validate_sequence_field` directly reject all `fields.<sequence-field>.aggregate-function` entries, and that create/alter tests be added.


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org