miomiocat commented on code in PR #1520:
URL: https://github.com/apache/paimon-rust/pull/1520#discussion_r4690685880
##########
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:
Fixed in 5b6fdaac. The C read handle now retains the builder’s full
predicate and reapplies it with `TableRead::with_filter` when reconstructing
the reader. Imported splits therefore go through the same partition check as
Rust reads, and surviving rows still go through the data filter. The regression
imports the same scored `pt=0` split twice: `pt >= 1 AND id >= 2` returns no
rows, while `pt >= 0 AND id >= 2` expects IDs 2 and 3 with their original
scores. The C library builds and its test target compiles. Thanks for isolating
the imported-plan case.
--
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]