Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
findepi opened this issue Nov 8, 2024 · 2 comments · Fixed by #6703
Assignees
Labels
arrow Changes to the arrow crate

Comments

@findepi
Copy link
Member

findepi commented Nov 8, 2024

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])
);
@findepi
Copy link
Member Author

findepi commented Nov 8, 2024

take

@alamb alamb added the arrow Changes to the arrow crate label Nov 16, 2024
@alamb
Copy link
Contributor

alamb commented Nov 16, 2024

label_issue.py automatically added labels {'arrow'} from #6703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants