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

feat: compile and execute partitioned query #806

Merged
merged 16 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ tonic = "0.9.2"
tonic-build = { version = "0.9.2", features = ["prost"] }
tonic-health = "0.9.2"
tonic-reflection = "0.9.2"
tracing = "0.1.37"
tracing = { version = "0.1.37", features = ["release_max_level_debug"] }
tracing-error = "0.2.0"
tracing-opentelemetry = "0.19.0"
tracing-serde = "0.1.3"
Expand Down
7 changes: 5 additions & 2 deletions crates/sparrow-arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ itertools.workspace = true
num.workspace = true
proptest = { workspace = true, optional = true }
serde.workspace = true
static_init.workspace = true
tracing.workspace = true

[dev-dependencies]
Expand All @@ -43,4 +42,8 @@ insta.workspace = true
proptest.workspace = true

[lib]
doctest = false
doctest = false

[package.metadata.cargo-machete]
# Optional package enabled by `testing`
ignored = ["proptest"]
2 changes: 1 addition & 1 deletion crates/sparrow-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ index_vec.workspace = true
itertools.workspace = true
smallvec.workspace = true
sparrow-arrow = { path = "../sparrow-arrow" }
sparrow-core = { path = "../sparrow-core" }
sparrow-expressions = { path = "../sparrow-expressions" }
sparrow-logical = { path = "../sparrow-logical" }
sparrow-physical = { path = "../sparrow-physical" }
uuid.workspace = true
static_init.workspace = true
tracing.workspace = true

[dev-dependencies]
insta.workspace = true
Expand Down
7 changes: 6 additions & 1 deletion crates/sparrow-backend/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ pub fn compile(
Cow::Owned(CompileOptions::default())
};

let physical = LogicalToPhysical::new().apply(root)?;
// Convert the logical expression tree to a physical plan.
let mut physical = LogicalToPhysical::new().apply(root)?;

// Schedule the steps in the physical plan.
physical.pipelines = crate::pipeline_schedule(&physical.steps);

Ok(physical)
}
Loading
Loading