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

Track compute metrics for sql dml with new engine #2190

Merged
merged 2 commits into from
Jan 31, 2025
Merged

Conversation

joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Jan 29, 2025

Description of Changes

DML was still using the old engine. This patch updates it to use the new engine.

NOTE: Internal tests are failing due to a new dependency in core. Hence this pr will merge with internal tests failing, but they will be fixed immediately afterwards.

API and ABI breaking changes

None

Expected complexity level and risk

3

There are a few non-trivial changes:

  1. SET and SHOW statements are rewritten as INSERT and SELECT respectively
  2. We have to parse the query to determine if it is a dml statement and therefore whether it should be executed in a mutable or read-only transaction

Testing

All previous tests still apply

crates/execution/src/pipelined.rs Show resolved Hide resolved
crates/expr/src/expr.rs Show resolved Hide resolved
@joshua-spacetime joshua-spacetime force-pushed the joshua/query-billing-metrics branch from e003202 to 7fe9162 Compare January 29, 2025 19:16
Base automatically changed from joshua/query-billing-metrics to master January 29, 2025 21:55
crates/execution/src/dml.rs Show resolved Hide resolved
crates/expr/src/expr.rs Outdated Show resolved Hide resolved
crates/expr/src/statement.rs Show resolved Hide resolved
@joshua-spacetime joshua-spacetime changed the title Update sql dml to use new engine Track compute metrics for sql dml with new engine Jan 31, 2025
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Jan 31, 2025
Merged via the queue into master with commit 6aa75bd Jan 31, 2025
12 of 13 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/dml branch January 31, 2025 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