Skip to content

Add regression coverage for DATE interval overflow#22519

Queued
puneetdixit200 wants to merge 1 commit into
apache:mainfrom
puneetdixit200:fix/22233-date-interval-overflow
Queued

Add regression coverage for DATE interval overflow#22519
puneetdixit200 wants to merge 1 commit into
apache:mainfrom
puneetdixit200:fix/22233-date-interval-overflow

Conversation

@puneetdixit200
Copy link
Copy Markdown

Summary

  • add sqllogictest coverage for DATE + INTERVAL day overflow near the Date32 boundary
  • assert the issue repro returns the existing Date arithmetic overflow error instead of panicking

Closes #22233.

Notes

Current upstream main already returns the expected overflow error for this repro, so this PR is regression coverage only.

Tests

  • cargo test -p datafusion-expr-common test_overflow_handling -- --nocapture
  • cargo test --profile=ci --test sqllogictests -- datetime/arith_date_interval.slt

@github-actions github-actions Bot added the sqllogictest SQL Logic Tests (.slt) label May 26, 2026
@puneetdixit200 puneetdixit200 marked this pull request as ready for review May 26, 2026 06:35
@puneetdixit200
Copy link
Copy Markdown
Author

Could a committer please trigger the Rust CI when convenient? At the moment only the labeler check has run.

@Dandandan Dandandan added this pull request to the merge queue May 26, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 26, 2026
@Dandandan Dandandan added this pull request to the merge queue May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic: interval analysis handle_overflow unreachable!() for DATE + INTERVAL near boundary

2 participants