Repository navigation
[core] Align BIGINT and timestamp schema evolution with Java - #1107
Merged
JingsongLi merged 1 commit intoOct 12, 2026
Merged
Conversation
leaves12138
approved these changes
Oct 12, 2026
leaves12138
left a comment
There was a problem hiding this comment.
The Rust implementation aligns the BIGINT/timestamp evolution paths with Java, including floor division, LTZ round-trip behavior, signed-long wrapping, nested values, and statistics/predicate safety. The focused Rust tests and CI are green.
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.
What is the purpose of the change?
Align the existing BIGINT/timestamp schema-evolution paths with Java casts. PyPaimon already reads these type changes, but Arrow's generic cast interprets timestamps as physical ticks: for example
42001msbecomes BIGINT42001, while Java returns epoch seconds42.Brief change log
seconds * 1000milliseconds. Preserve lenient NULLs when Arrow's target unit cannot represent the result.Verifying this change
cargo test -p paimon --lib arrow::: 522 passed, 1 ignored; after adding the final nullable-container test, all 28 nested-evolution tests passed.cargo test -p paimon --test schema_evolution_cast_test: 2 passed (each covers append, PK and data evolution).cargo +1.98.0 fmt --all -- --checkcargo +1.98.0 clippy --locked --all-targets --workspace --features fulltext,vortex -- -D warningsCastExecutorTest#testTimestampToNumeric+testTimestampToNumericPreEpoch: 2 passed. Direct calls to Java CastExecutors also confirmed the long-wrapping and extreme-LTZ golden values.The accompanying PyPaimon PR apache/paimon#10508 aligns its existing Python casts with Java and adds Native REST parity coverage. This only addresses type-change paths already supported by Python.