shyjsarah opened a new pull request, #482:
URL: https://github.com/apache/paimon-rust/pull/482
## Summary
Add read-only DataFusion support for Java-compatible Paimon branch
references such as `table$branch_b1` and `table$branch_b1$snapshots`.
## Changes
- Parse Paimon object names into base table, optional branch, and optional
system table components.
- Add branch-aware table copies and make scans, time travel, and system
tables use branch-aware snapshot/tag managers.
- Route DataFusion table and system-table lookup through branch-aware
loading.
- Reject write operations against non-main branch references.
- Document branch reference reads and read-only behavior.
## Testing
- `cargo fmt --all`
- `git diff --check`
- With the current upstream `BTREE_INDEX_TYPE` compile issue temporarily
patched locally:
- `cargo check -p paimon-datafusion --lib`
- `cargo test -p paimon catalog::tests --lib`
- `cargo test -p paimon-datafusion
system_tables::tests::branch_reference_does_not_drop_branch_name --lib`
- `cargo test -p paimon-datafusion --test sql_context_tests
test_select_branch_table_reads_branch_snapshot`
## Notes
This changes the public Rust API by adding branch helpers on `Table` and
object-name parsing helpers under `paimon::catalog`.
Running `cargo check -p paimon-datafusion --lib` on unmodified upstream
`main` currently fails before this change due to unresolved `BTREE_INDEX_TYPE`
references in `btree_global_index_build_builder.rs`. This PR intentionally does
not include that unrelated fix.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]