You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "beryllw (via GitHub)" <gi...@apache.org> on 2026/08/05 02:20:30 UTC
[I] [rust] Partial update wrongly rejects NOT NULL columns that are explicitly listed in target columns [fluss]
beryllw opened a new issue, #3849:
URL: https://github.com/apache/fluss/issues/3849
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
### Fluss version
main (development)
### Please describe the bug 🐞
In the Rust client, the partial-update sanity check in UpsertWriterFactory (fluss-rust/crates/fluss/src/client/table/upsert.rs) requires every non-primary-key, non-auto-increment column to be nullable — including columns that are explicitly listed in the target columns and therefore written on every request:
https://github.com/apache/fluss/blob/4f89e3e8b1bec158aa4a12bc8dbbbb695e3822b4/fluss-rust/crates/fluss/src/client/table/upsert.rs#L276-L289
The nullability rule only makes sense for omitted columns (the server has to fill them). A column that is present in the target columns is always provided by the writer, so requiring it to be nullable is unnecessary and rejects valid usage.
### Solution
Apply the nullability check only to omitted columns:
```
if !target_column_set[i] && !pk_column_set[i] && !auto_increment_column_set[i] { ... }
```
and adjust the error message to say "omitted column". Add unit tests covering: (a) a NOT NULL column listed in target columns is accepted, (b) an omitted NOT NULL column is still rejected.
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [rust] Partial update wrongly rejects NOT NULL columns that are explicitly listed in target columns [fluss]
Posted by "gstamatakis95 (via GitHub)" <gi...@apache.org>.
gstamatakis95 commented on issue #3849:
URL: https://github.com/apache/fluss/issues/3849#issuecomment-5190686916
> Would you like to take this one? @gstamatakis95
Yes I would like to tackle this one if possible.
--
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@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [rust] Partial update wrongly rejects NOT NULL columns that are explicitly listed in target columns [fluss]
Posted by "beryllw (via GitHub)" <gi...@apache.org>.
beryllw commented on issue #3849:
URL: https://github.com/apache/fluss/issues/3849#issuecomment-5186827814
Would you like to take this one? @gstamatakis95
--
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@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [rust] Partial update wrongly rejects NOT NULL columns that are explicitly listed in target columns [fluss]
Posted by "beryllw (via GitHub)" <gi...@apache.org>.
beryllw closed issue #3849: [rust] Partial update wrongly rejects NOT NULL columns that are explicitly listed in target columns
URL: https://github.com/apache/fluss/issues/3849
--
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@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [rust] Partial update wrongly rejects NOT NULL columns that are explicitly listed in target columns [fluss]
Posted by "beryllw (via GitHub)" <gi...@apache.org>.
beryllw commented on issue #3849:
URL: https://github.com/apache/fluss/issues/3849#issuecomment-5214069222
Closing for now — the strict nullability rule is enforced consistently on the server side as well, so a client-only fix isn't viable, and relaxing the server is a larger semantic change that needs discussion first. Will reopen once we agree on the intended behavior.
--
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@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org