Skip to content

Handle arguments checking of min/max function to avoid crashes#12016

Merged
alamb merged 2 commits intoapache:mainfrom
tlm365:min-max-args-check
Aug 15, 2024
Merged

Handle arguments checking of min/max function to avoid crashes#12016
alamb merged 2 commits intoapache:mainfrom
tlm365:min-max-args-check

Conversation

@tlm365
Copy link
Copy Markdown
Contributor

@tlm365 tlm365 commented Aug 15, 2024

Which issue does this PR close?

Closes #12011.

Rationale for this change

Handles min/max args checking and throw error instead of crash.

What changes are included in this PR?

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Signed-off-by: Tai Le Manh <manhtai.lmt@gmail.com>
@github-actions github-actions Bot added the functions Changes to functions implementation label Aug 15, 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 @tlm365

@alamb alamb merged commit 36158b6 into apache:main Aug 15, 2024
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Aug 15, 2024

I couldn't help myself -- we should have a regression test for this code so I added one in #12024

@tlm365 tlm365 deleted the min-max-args-check branch August 21, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panics in MIN()/MAX() aggregate functions (SQLancer)

3 participants