Skip to content

Conversation

@andygrove
Copy link
Member

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

This PR adds:

  1. Framework support for query expect_error(<pattern>) mode in the SQL test framework, which verifies both Spark and Comet throw exceptions containing the given pattern.

  2. New ANSI mode test files:

  3. Documentation for the new expect_error query mode.

How are these changes tested?

This PR adds:

1. Framework support for `query expect_error(<pattern>)` mode in the SQL test
   framework, which verifies both Spark and Comet throw exceptions containing
   the given pattern.

2. New ANSI mode test files:
   - `math/abs_ansi.sql` - Tests abs overflow on INT_MIN, LONG_MIN, etc.
   - `math/arithmetic_ansi.sql` - Tests arithmetic overflow and divide-by-zero
   - `array/get_array_item_ansi.sql` - Tests out-of-bounds array access (ignored pending apache#3375)
   - `array/element_at_ansi.sql` - Tests out-of-bounds element_at (ignored pending apache#3375)

3. Documentation for the new `expect_error` query mode.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov-commenter
Copy link

codecov-commenter commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.02%. Comparing base (f09f8af) to head (67d575d).
⚠️ Report is 920 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3377      +/-   ##
============================================
+ Coverage     56.12%   60.02%   +3.89%     
- Complexity      976     1464     +488     
============================================
  Files           119      175      +56     
  Lines         11743    16179    +4436     
  Branches       2251     2686     +435     
============================================
+ Hits           6591     9711    +3120     
- Misses         4012     5114    +1102     
- Partials       1140     1354     +214     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andygrove andygrove marked this pull request as ready for review February 3, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants