Skip to content

fix: date overflow panic#21233

Open
haohuaijin wants to merge 4 commits intoapache:mainfrom
haohuaijin:data-painc
Open

fix: date overflow panic#21233
haohuaijin wants to merge 4 commits intoapache:mainfrom
haohuaijin:data-painc

Conversation

@haohuaijin
Copy link
Copy Markdown
Contributor

@haohuaijin haohuaijin commented Mar 29, 2026

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

handle Date32 and Date64 in get_extreme_value function

Are these changes tested?

yes, add test case

Are there any user-facing changes?

@github-actions github-actions bot added logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt) labels Mar 29, 2026
Copy link
Copy Markdown
Member

@xiedeyantu xiedeyantu left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

adding a Date64 test would be stronger

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

agree, added in 16b2f34

@haohuaijin
Copy link
Copy Markdown
Contributor Author

the test case failed, but look like unrelated to my change.

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Mar 30, 2026

the test case failed, but look like unrelated to my change.

I think it was fixed by @mbutrovich here

I merged you PR up from main to get the latest code

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

date type panic when overflow

4 participants