Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clarify evaluation semantics for DDL operations in bindings #3133

Merged
merged 6 commits into from
Aug 8, 2024

Conversation

tychoish
Copy link
Contributor

@tychoish tychoish commented Aug 5, 2024

This restores the legacy semantics (ish) but caches the results for eagerly executed options so that calling the resolving methods (e.g. to_pandas()) won't error in the case of rexecution.

This will be weird in cases where INSERT INTO foo VALUES(123, now()) "tick-tock"), which you might expect to insert more than one row if it were being lazily evaluated in the old way.

crates/glaredb/src/lib.rs Outdated Show resolved Hide resolved
crates/sqlexec/src/session.rs Show resolved Hide resolved
@tychoish tychoish changed the title fix: make lazy evaluation make more sense fix: clarify evaluation semantics for DDL operations in bindings Aug 8, 2024
@tychoish tychoish merged commit 464a3f9 into main Aug 8, 2024
26 checks passed
@tychoish tychoish deleted the tycho/improved-lazy-handling branch August 8, 2024 15:47
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.

3 participants