Skip to content

Incorrect like results for pattern starting/ending with % percent and containing escape characters #6702

Closed
@findepi

Description

@findepi

This should pass, but doesn't

// %...  pattern with escapes
assert_eq!(
    like(
        &StringArray::from_iter_values([r"abc\d"]),
        &StringArray::from_iter_values([r"%c\\d"])
    )
    .unwrap(),
    BooleanArray::from(vec![true])
);
// ...%  pattern with escapes
assert_eq!(
    like(
        &StringArray::from_iter_values([r"a\bcd"]),
        &StringArray::from_iter_values([r"a\\b%"])
    )
    .unwrap(),
    BooleanArray::from(vec![true])
);

Metadata

Metadata

Assignees

Labels

arrowChanges to the arrow crate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions