apache / apache/fluss-rust

Schema validations to match Java

Open
#324 4 comments 0 reactions 1 assignee Claimed by @LED-0102 View on GitHub
good first issue
Dominant language
Rust
Stars
58
Forks
50
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/fluss-rust/issues) and found nothing similar.

### Description

Add missing schema validations in SchemaBuilder::build() to match Java's Schema.normalizeColumns():
* reject duplicate PK columns
* require auto-increment columns to be INT/BIGINT and not part of the primary key
* require a primary key when auto-increment is used
* reject empty/whitespace column names and constraint names
* etc that makes sense in the current state

### Willingness to contribute

- [ ] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.