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

[Optimizer] regexp_matches fix InternalException caused by NULL #9872

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Dec 2, 2023

This PR fixes #9870

We were calling StringValue::Get before checking if the value is NULL, causing it to throw an InternalException.
I've added a test that would trigger the error on current main

@Mytherin Mytherin merged commit 0c43855 into duckdb:main Dec 4, 2023
42 of 43 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Dec 4, 2023

Thanks!

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Dec 14, 2023
Merge pull request duckdb/duckdb#9872 from Tishj/regexp_matches_null_optimizer
Merge pull request duckdb/duckdb#9877 from hamilton/hamilton/autocomplete-add-from-to-initial-keywords
Merge pull request duckdb/duckdb#9875 from Mytherin/progressbardisable
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.

Internal Error: Calling StringValue::Get on a NULL value
3 participants