Skip to content

Commit

Permalink
stop reverse string for ends_with
Browse files Browse the repository at this point in the history
  • Loading branch information
xinlifoobar committed Aug 19, 2024
1 parent 6bee687 commit 3322905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow-string/src/predicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl<'a> Predicate<'a> {
BooleanArray::from(
string_view_array
.suffix_iter(v.len())
.map(|haystack| ends_with(haystack, v, equals_kernel) != negate)
.map(|haystack| starts_with(haystack, v, equals_kernel) != negate)
.collect::<Vec<_>>(),
)
} else {
Expand All @@ -178,7 +178,7 @@ impl<'a> Predicate<'a> {
string_view_array
.suffix_iter(v.len())
.map(|haystack| {
ends_with(haystack, v, equals_ignore_ascii_case_kernel) != negate
starts_with(haystack, v, equals_ignore_ascii_case_kernel) != negate
})
.collect::<Vec<_>>(),
)
Expand Down

0 comments on commit 3322905

Please sign in to comment.