Skip to content

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Apr 13, 2023

This PR fixes #7068

Previously when fixing this, I experienced weird behavior from PossibleMatchRange, where the pattern A would return A as min and max as B , which I "fixed" by just returning the original pattern string in that case.

That doesn't work, because the problematic case in the issue should not be optimized to a simple count.
Increasing the N value passed to PossibleMatchRange removes this inaccuracy, allowing us to properly judge whether this can be optimized or not.

@Mytherin Mytherin merged commit cc61605 into duckdb:master Apr 13, 2023
@Mytherin
Copy link
Collaborator

Thanks for the fix! LGTM

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

Successfully merging this pull request may close these issues.

Inconsistent Regexp Behavior with Inline (?i) Modifier
2 participants