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

Fix: Internal error in regexp_replace() for some StringView input #12201

Closed

Conversation

devanbenz
Copy link
Contributor

Which issue does this PR close?

Closes #12150 & #11912

Rationale for this change

What changes are included in this PR?

This adds some data type coercion for when there is a [Utf8View, Utf8, Utf8] input that does not return a Utf8View output.

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) functions labels Aug 28, 2024
@devanbenz devanbenz closed this Aug 28, 2024
args.get(3),
)?;

if regexp_replace_result.data_type() == &DataType::Utf8 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may be a better way to do this but I'm unsure how.

@devanbenz devanbenz reopened this Aug 28, 2024
@devanbenz
Copy link
Contributor Author

Closing this pull request and re-opening.

@devanbenz devanbenz closed this Aug 28, 2024
@devanbenz devanbenz deleted the fix/12150-fix-utf8view-regexrep branch August 28, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal error in regexp_replace() for some StringView input (SQLancer)
1 participant