We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14622a commit 19b1f0aCopy full SHA for 19b1f0a
src/iceberg/expression/inclusive_metrics_evaluator.cc
@@ -369,12 +369,12 @@ class InclusiveMetricsVisitor : public BoundVisitor<bool> {
369
return ROWS_MIGHT_MATCH;
370
}
371
372
- if (prefix == lower_str.substr(0, prefix.size())) {
+ if (lower_str.starts_with(prefix)) {
373
// if upper is shorter than the prefix then upper can't start with the prefix
374
if (upper_str.size() < prefix.size()) {
375
376
377
- if (upper_str.substr(0, prefix.size()) == prefix) {
+ if (upper_str.starts_with(prefix)) {
378
// both bounds match the prefix, so all rows must match the prefix and therefore
379
// do not satisfy the predicate
380
return ROWS_CANNOT_MATCH;
0 commit comments