Skip to content

Commit 19b1f0a

Browse files
author
xiao.dong
committed
fix cpplint
1 parent b14622a commit 19b1f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iceberg/expression/inclusive_metrics_evaluator.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,12 @@ class InclusiveMetricsVisitor : public BoundVisitor<bool> {
369369
return ROWS_MIGHT_MATCH;
370370
}
371371

372-
if (prefix == lower_str.substr(0, prefix.size())) {
372+
if (lower_str.starts_with(prefix)) {
373373
// if upper is shorter than the prefix then upper can't start with the prefix
374374
if (upper_str.size() < prefix.size()) {
375375
return ROWS_MIGHT_MATCH;
376376
}
377-
if (upper_str.substr(0, prefix.size()) == prefix) {
377+
if (upper_str.starts_with(prefix)) {
378378
// both bounds match the prefix, so all rows must match the prefix and therefore
379379
// do not satisfy the predicate
380380
return ROWS_CANNOT_MATCH;

0 commit comments

Comments
 (0)