voonhous opened a new pull request, #21088:
URL: https://github.com/apache/hudi/pull/21088

   ### Describe the issue this Pull Request addresses
   
   Follow-up to #20255, which #20540 fixed on master. Ports the end-to-end test 
of #20256, closed as superseded, so the fix keeps a regression test for filters 
on another function of an expression index column.
   
   ### Summary and Changelog
   
   - New test "Test Expression Index Is Not Used For Filters On Another 
Function" in `TestExpressionIndex`, on COW and MOR: with an index on 
`lower(rider)`, `upper(rider) = ...`, `upper(rider) IN (...)` and 
`length(rider) = 7` return every matching row, and `lower(rider) = ...` still 
prunes.
   - Master covers this at the unit level (`TestDataSkippingStages`) and end to 
end only for functions of the same result type (`minute(ts)` against an 
`hour(ts)` index). This adds a function with a different result type than the 
index, which used to fail with a `ClassCastException`.
   - On the parent of #20540 the test fails: `upper(rider) = 'RIDER-C'` returns 
no rows instead of `trip2` and `trip4`. It passes on master.
   
   ### Impact
   
   Test only.
   
   ### Risk Level
   
   none
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


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

Reply via email to