deepaknettem opened a new pull request, #1187:
URL: https://github.com/apache/iceberg-cpp/pull/1187

   ### Problem
   
   Follow-up to #1156 and #1177.
   
   In InclusiveMetricsEvaluator::StartsWith, if lower_bounds is missing, the 
evaluator returns kRowsMightMatch immediately and skips the upper_bounds check. 
For example, a file with no lower bound and upper_bounds = "dC" is still read 
for `StartsWith("required", "e")` or `StartsWith("required", "dCa")`, even 
though no value in the file can match.
   
   ### Fix
   
   - Only run the lower-bound check when `lower_bounds` is present and 
non-null, and still fall through to prune against upper_bounds
   - Use `std::string_view::compare(0, prefix.size(), prefix) > 0` for the 
lower bound and upper_str < prefix for the upper bound. This matches the 
StrictMetricsEvaluator::NotStartsWith implementation from #1177.
   
   ### Tests
   
   Add basic unit tests. 


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