Skip to content

Fix: handle NULL input for regex match operations#12028

Merged
alamb merged 1 commit intoapache:mainfrom
HuSen8891:datafusion
Aug 17, 2024
Merged

Fix: handle NULL input for regex match operations#12028
alamb merged 1 commit intoapache:mainfrom
HuSen8891:datafusion

Conversation

@HuSen8891
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #11623

Rationale for this change

For regex match operations, handle NULL input, such as
select v1 ~ null from t; --- described in #11623

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions Bot added physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt) labels Aug 16, 2024
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @HuSen8891 🙏

cc @2010YOUY01 the sqlancer project keeps paying off

@alamb alamb merged commit e84f343 into apache:main Aug 17, 2024
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Aug 17, 2024

Thanks again @HuSen8891

@HuSen8891 HuSen8891 deleted the datafusion branch August 18, 2024 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect NULL handling for regex match ~ (SQLancer)

2 participants