cetra3 opened a new issue, #22073:
URL: https://github.com/apache/datafusion/issues/22073

   ### Describe the bug
   
   PR [#21743](https://github.com/apache/datafusion/pull/21743) (commit 
`4bff17ebd`) unified `ANY`/`ALL` planning under a CASE expression to align NULL 
semantics with PostgreSQL. 
   
   As a side effect, the new `LogicalPlan` shape is no longer recognized by 
`PruningPredicate`, which **disables Parquet row-group statistics pruning, 
bloom-filter pruning, and page-index pruning** for `<expr> <op> ANY(<array 
literal>)` queries.
   
   ### To Reproduce
   
   This will fail:
   
   ```rust
   #[tokio::test]
   async fn prune_int32_eq_any_literal_array() {
       RowGroupPruningTest::new()
           .with_scenario(Scenario::Int)
           .with_query("SELECT * FROM t where i32 = ANY([100])")
           .with_expected_errors(Some(0))
           .with_matched_by_stats(Some(0))
           .with_pruned_by_stats(Some(0))
           .with_pruned_files(Some(1))
           .with_matched_by_bloom_filter(Some(0))
           .with_pruned_by_bloom_filter(Some(0))
           .with_expected_rows(0)
           .test_row_group_prune()
           .await;
   }
   ```
   
   ### Expected behavior
   
   The test will pass
   
   ### Additional context
   
   _No response_


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