JingsongLi commented on code in PR #1520:
URL: https://github.com/apache/paimon-rust/pull/1520#discussion_r4690394923
##########
bindings/c/src/table.rs:
##########
@@ -1082,7 +1118,15 @@ pub unsafe extern "C" fn paimon_table_read_to_arrow(
table_read = table_read.with_resources(resources.clone());
}
- match table_read.to_arrow(selected) {
+ let stream = match (state.index_score_name.as_deref(), selected) {
+ (Some(name), [split]) => table_read.to_arrow_with_index_score(split,
name),
Review Comment:
**[P2] Preserve partition filters when reading imported scored splits**
I wrote three tracked rows to `pt=0`, encoded its IndexedSplit, and read it
through `paimon_plan_from_split_bytes` with `pt >= 1` and a score projection.
The C reader returned all three rows and their scores. The imported split
bypasses scan planning, and `TableReadState` carries only `data_predicates()`,
so the reconstructed reader loses the partition predicate that should reject
this split. Please carry the full predicate through the C read state and apply
it when reconstructing `TableRead`, with an imported-split test that selects a
different partition.
--
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]