You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "jackylee-ch (via GitHub)" <gi...@apache.org> on 2026/07/31 11:57:55 UTC
[PR] fix(spec): reject aggregation on a sequence field for every merge engine [paimon-rust]
jackylee-ch opened a new pull request, #638:
URL: https://github.com/apache/paimon-rust/pull/638
Java `SchemaValidation#validateSequenceField` checks `fieldAggFunc(field) == null`
for every field in `sequence.field`, and that validator runs for every merge
engine. The Rust equivalent lived inside
`AggregationConfig::validate_field_scoped_options`, which is only reached when
`merge-engine=aggregation` — so on the default deduplicate engine a schema
combining `sequence.field = 'ts'` with `fields.ts.aggregate-function = 'sum'` was
silently accepted and persisted.
**Fix**: hoist the check into a free `validate_no_aggregation_on_sequence_field`
keyed only on the option map, and call it from `Schema::new` and
`TableSchema::apply_changes` alongside the other sequence-field validations, so it
no longer depends on the merge engine. The existing aggregation-engine test is
widened to cover all five engines, plus create/alter tests on the default engine.
--
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
Re: [PR] fix(spec): reject aggregation on a sequence field for every merge engine [paimon-rust]
Posted by "jackylee-ch (via GitHub)" <gi...@apache.org>.
jackylee-ch closed pull request #638: fix(spec): reject aggregation on a sequence field for every merge engine
URL: https://github.com/apache/paimon-rust/pull/638
--
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
Re: [PR] fix(spec): reject aggregation on a sequence field for every merge engine [paimon-rust]
Posted by "jackylee-ch (via GitHub)" <gi...@apache.org>.
jackylee-ch commented on PR #638:
URL: https://github.com/apache/paimon-rust/pull/638#issuecomment-5162867086
Folded into #615 so the full `validateSequenceField` parity is reviewable in one place.
--
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