Skip to content

Restore view's bind_state when binding fails - #21193

Merged
Mytherin merged 2 commits into
duckdb:v1.5-variegatafrom
jeewonhh:jwn/bind-state-restore
Mar 9, 2026
Merged

Mytherin merged 2 commits into
duckdb:v1.5-variegatafrom
jeewonhh:jwn/bind-state-restore

Conversation

@jeewonhh

@jeewonhh jeewonhh commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

When view binding fails, the bind_state still remains stuck at BINDING phase. This can be misinterpreted as recursive binding and trigger exception View "..." was requested to be bound but this thread is already binding that view - this likely means the view was attempted to be bound recursively. This PR restore the bind_state upon bind failure.

@duckdb-draftbot
duckdb-draftbot marked this pull request as draft March 5, 2026 13:44
@Mytherin
Mytherin marked this pull request as ready for review March 5, 2026 14:00
@Mytherin
Mytherin merged commit 773497d into duckdb:v1.5-variegata Mar 9, 2026
137 of 143 checks passed
@Mytherin

Mytherin commented Mar 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

github-actions Bot pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 9, 2026
Date: 2026-03-09 09:27:32 +0100

[Regression v1.5] Fix INTERNAL Error in UnnestRewriter for deeply nested struct UNNEST (duckdb/duckdb#21209)
Restore view's bind_state when binding fails (duckdb/duckdb#21193)
CLI: Make help entry uppercase (duckdb/duckdb#21224)
[Extensions] Preserve `require` order in `InterpretedBenchmark` (duckdb/duckdb#21214)
bump spatial (duckdb/duckdb#21206)
Bump httpfs to better handle path normalization (curl backend) (duckdb/duckdb#21195)
github-actions Bot added a commit to duckdb/duckdb-r that referenced this pull request Mar 9, 2026
Date: 2026-03-09 09:27:32 +0100

[Regression v1.5] Fix INTERNAL Error in UnnestRewriter for deeply nested struct UNNEST (duckdb/duckdb#21209)
Restore view's bind_state when binding fails (duckdb/duckdb#21193)
CLI: Make help entry uppercase (duckdb/duckdb#21224)
[Extensions] Preserve `require` order in `InterpretedBenchmark` (duckdb/duckdb#21214)
bump spatial (duckdb/duckdb#21206)
Bump httpfs to better handle path normalization (curl backend) (duckdb/duckdb#21195)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
github-actions Bot pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 17, 2026
Date: 2026-03-09 09:27:32 +0100

[Regression v1.5] Fix INTERNAL Error in UnnestRewriter for deeply nested struct UNNEST (duckdb/duckdb#21209)
Restore view's bind_state when binding fails (duckdb/duckdb#21193)
CLI: Make help entry uppercase (duckdb/duckdb#21224)
[Extensions] Preserve `require` order in `InterpretedBenchmark` (duckdb/duckdb#21214)
github-actions Bot added a commit to duckdb/duckdb-r that referenced this pull request Mar 17, 2026
Date: 2026-03-09 09:27:32 +0100

[Regression v1.5] Fix INTERNAL Error in UnnestRewriter for deeply nested struct UNNEST (duckdb/duckdb#21209)
Restore view's bind_state when binding fails (duckdb/duckdb#21193)
CLI: Make help entry uppercase (duckdb/duckdb#21224)
[Extensions] Preserve `require` order in `InterpretedBenchmark` (duckdb/duckdb#21214)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Mar 22, 2026
Date: 2026-03-09 09:27:32 +0100

[Regression v1.5] Fix INTERNAL Error in UnnestRewriter for deeply nested struct UNNEST (duckdb/duckdb#21209)
Restore view's bind_state when binding fails (duckdb/duckdb#21193)
CLI: Make help entry uppercase (duckdb/duckdb#21224)
[Extensions] Preserve `require` order in `InterpretedBenchmark` (duckdb/duckdb#21214)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Mar 22, 2026
Date: 2026-03-09 09:27:32 +0100

[Regression v1.5] Fix INTERNAL Error in UnnestRewriter for deeply nested struct UNNEST (duckdb/duckdb#21209)
Restore view's bind_state when binding fails (duckdb/duckdb#21193)
CLI: Make help entry uppercase (duckdb/duckdb#21224)
[Extensions] Preserve `require` order in `InterpretedBenchmark` (duckdb/duckdb#21214)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Mar 22, 2026
Date: 2026-03-09 09:27:32 +0100

[Regression v1.5] Fix INTERNAL Error in UnnestRewriter for deeply nested struct UNNEST (duckdb/duckdb#21209)
Restore view's bind_state when binding fails (duckdb/duckdb#21193)
CLI: Make help entry uppercase (duckdb/duckdb#21224)
[Extensions] Preserve `require` order in `InterpretedBenchmark` (duckdb/duckdb#21214)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
kaka11chen pushed a commit to AstroVela/vane that referenced this pull request Aug 14, 2026
When view binding fails, the bind_state still remains stuck at `BINDING`
phase. This can be misinterpreted as recursive binding and trigger
exception `View "..." was requested to be bound but this thread is
already binding that view - this likely means the view was attempted to
be bound recursively`. This PR restore the bind_state upon bind failure.

Upstream-Commit: duckdb/duckdb@773497d
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