Skip to content

Update sqlite recursion limit expectations for limit 51 (sqlparser upgrade) - #23

Merged
alamb merged 1 commit into
apache:mainfrom
alamb:update-recursion-limit-51
Sep 17, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
alamb:update-recursion-limit-51

Conversation

@alamb

@alamb alamb commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Rationale

In apache/datafusion#25278, I am upgrading sqlparser to 0.63.0, which adds recursion guards to more parse functions (e.g. data type and INTERVAL parsing).

This means that some queries no longer pass under the old cap of 50, so I changed the default recursion limit to 51 to avoid rejecting queries that previously parsed successfully. However, a bunch of tests embed that constant in the expected results, so I need to change this repo too

Changes

Update 275 RecursionLimitExceeded error-message expectations

Testing

Pointed DataFusion's datafusion-testing submodule at this commit, with apache/datafusion#25278 plus the default set to 51, and ran:

INCLUDE_SQLITE=true cargo test --profile release-nonlto --test sqllogictests

All 1,115 files completed successfully.

DataFusion is upgrading to sqlparser 0.63.0, which adds recursion guards to
more parse functions so every expression consumes one more level of the
parser recursion budget. To keep previously-parseable queries working,
DataFusion is raising the default `datafusion.sql_parser.recursion_limit`
from 50 to 51 (apache/datafusion#25278).

Update the 275 `RecursionLimitExceeded` expectations across 15 sqlite test
files to expect `(current limit: 51)`. The queries still fail with the new
limit, only the limit reported in the error message changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@alamb alamb changed the title Update sqlite recursion limit expectations for limit 51 Update sqlite recursion limit expectations for limit 51 (sqlparser upgrade) Sep 17, 2026
@alamb
alamb requested a review from comphead September 17, 2026 14:52
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 51\)

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.

just the message changes, everything else is the same

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.

yea, looks like so.

@alamb

alamb commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Thank you @viirya

@alamb
alamb merged commit 81c7440 into apache:main Sep 17, 2026
@alamb
alamb deleted the update-recursion-limit-51 branch September 17, 2026 16:01
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