fix: serialize unbounded varchar as string - #730
Merged
JingsongLi merged 3 commits intoAug 19, 2026
Conversation
JingsongLi
marked this pull request as ready for review
August 19, 2026 05:44
leaves12138
approved these changes
Aug 19, 2026
leaves12138
left a comment
There was a problem hiding this comment.
Verified that unbounded VarChar serialization now matches Java Paimon's canonical STRING / STRING NOT NULL forms while bounded VARCHAR(n) remains unchanged. The parser already accepts both aliases, and the regression coverage covers nullable, non-null, and bounded cases. LGTM.
jerry-024
added a commit
to jerry-024/paimon-rust
that referenced
this pull request
Aug 21, 2026
* main: perf: vectorize raw vector search (apache#734) feat(file_index): add predicate evaluation foundation (apache#721) feat(go): add postpone fixed-bucket write bindings (apache#722) perf(vindex): split build timing logs by phase (apache#723) fix(avro): read TIME, BLOB, MULTISET and non-string-key map columns (apache#724) fix(datafusion): surface tag create-time and retention in $tags (apache#728) [core] Support multivalue global index (apache#731) feat: add Java-compatible array predicate pushdown (apache#732) fix: serialize unbounded varchar as string (apache#730) perf(vindex): decouple vector read threads and remove chunk barrier (apache#720) feat(vindex): add DiskANN and IVF-SQ/RQ support (apache#726) # Conflicts: # crates/paimon/src/table/data_file_reader.rs # crates/paimon/src/table/vindex_index_build_builder.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VarCharTypewith Java'sSTRINGaliasSTRING NOT NULLand boundedVARCHAR(n)behaviorRoot cause
VarCharTypeuses display-based Serde serialization, but itsDisplayimplementation always emittedVARCHAR(length). As a result, the maximum length used to representSTRINGwas persisted asVARCHAR(2147483647)instead of Java's canonicalSTRINGform.Validation
cargo fmt --all -- --checkcargo test -p paimon --lib(2317 passed,2 ignored)