mixermt commented on issue #7827:
URL: 
https://github.com/apache/datafusion-comet/issues/7827#issuecomment-7370738052

   Yes, that matches what I saw. With the check off at de0a6ac, queries with 
in-range literals such as `id > 0` lost rows only through the page index. 
Queries with an out-of-range literal such as `3000000000` lost them in the row 
filter. That's why the multi-page test, which uses in-range literals only, 
passes at 219078c and the other three need #3540.
   
   A few additions:
   
   1. **#7798 already gets there.** It pins apache/iceberg-rust@3cef7b6, which 
has both fixes. It also rewrites the reader-builder lines where #7712 passes 
the shared-footer `FileIO`, so it will conflict with main there. Removing the 
check in #7798, or right after it, avoids wiring that `FileIO` into the new 
`ArrowReaderOptions` only to delete it.
   
   2. **A few more places to revert** (from `git show --stat 785e961`):
      - `narrow_type_check = 17` in `operator.proto`, replaced by `reserved 
17;` and `reserved "narrow_type_check";`, and its setter in 
`CometIcebergNativeScan.scala`.
      - The metric in `CometIcebergNativeScanExec.scala`.
      - The `narrow_type_splits` assertions in the spark-4.1 
`CometIcebergEncryptionSuite`, and the config-off block in the promoted-table 
test.
      - The `mod` line in `operators/mod.rs` and the argument in `planner.rs`.
   
   3. **Equality deletes (#7834) can go in the same PR.** At 3cef7b6 the reader 
ANDs the equality-delete predicate into the residual before `get_row_filter` 
([`pipeline.rs`](https://github.com/apache/iceberg-rust/blob/3cef7b693e53a3f8c31c9ee1172de298546a8969/crates/iceberg/src/arrow/reader/pipeline.rs#L508-L578)),
 the function #3540 changed. I ran a test modelled on #7834's: an `INT` key 
promoted to `BIGINT`, with one delete file holding `2` and `3000000000`, the 
same values reversed, and `3000000000` alone. It asserts a native scan that 
matches Spark. It passes on #7798's head (8ee151b) and drops `[3,c]` on main. 
comphead also confirmed on apache/iceberg-rust#3122 that it is fixed at 
1d4c20a. So #7834's fallback can be removed together with the check, with its 
test flipped to assert the native scan.
   
   4. **Pruning.** Removing the check gains some: the files it skipped get 
their residual back, so their other columns prune again.
   
   5. **Small files.** The reader reuses the footer bytes the check fetched, so 
the check costs an extra decode rather than an extra read. For files under the 
512 KiB metadata hint it also cut requests (729 → 365 GETs in the benchmark on 
#7712), because the reader served its data reads from those bytes. Removing the 
check takes those scans back to their GET count before #7712. That doesn't 
affect correctness. If the request count matters, it would be a reader option 
to propose upstream.
   
   6. **Versioning.** Agreed. If the pin bump won't make 1.3.0, another option 
is to mark the key `internal()` before the release. Internal keys are exempt 
from the deprecation cycle ([versioning 
policy](https://github.com/apache/datafusion-comet/blob/main/docs/source/about/versioning_policy.md#testing-and-internal-configurations-are-exempt)),
 so it could then be removed in any release. The user-guide paragraph would 
drop the key.
   
   Thanks for picking up the removal. I'm happy to review it.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to