Skip to content

Throw an error when a streamed query fails (main) - #985

Merged
staticlibs merged 1 commit into
duckdb:mainfrom
staticlibs:stream_error
Nov 20, 2026
Merged

staticlibs merged 1 commit into
duckdb:mainfrom
staticlibs:stream_error

Conversation

@staticlibs

Copy link
Copy Markdown
Member

This is a forward-port of the PR #954 to the main branch.

complete_query_streaming checked HasError() only inside the loop, but EXECUTION_ERROR is observable, so a failed query left the loop and was returned as a stream. The next JNI call then threw "Invalid result set" instead of the stored error.

Fixes: #953

This is a forward-port of the PR duckdb#954 to the `main` branch.

complete_query_streaming checked HasError() only inside the loop, but
EXECUTION_ERROR is observable, so a failed query left the loop and was
returned as a stream. The next JNI call then threw "Invalid result set"
instead of the stored error.

Fixes: duckdb#953
@staticlibs
staticlibs merged commit 0a32933 into duckdb:main Nov 20, 2026
17 checks passed
@staticlibs
staticlibs deleted the stream_error branch November 20, 2026 12:28
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.

Errors in streamed queries are reported as "Invalid result set" in 2.x

2 participants