-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af20bac
commit 06b0141
Showing
7 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
//! A logical filter. | ||
/// Logical filter operator that selects rows matching a condition. | ||
/// | ||
/// Takes input relation (`Relation`) and filters rows using a boolean predicate (`Scalar`). | ||
#[derive(Clone)] | ||
pub struct Filter<Relation, Scalar> { | ||
/// The input relation. | ||
pub child: Relation, | ||
/// The filter expression denoting the predicate condition for this filter operation. | ||
pub predicate: Scalar, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
//! A logical join. | ||
/// Logical join operator that combines rows from two relations. | ||
/// | ||
/// Takes left and right relations (`Relation`) and joins their rows using a join condition | ||
/// (`Scalar`). | ||
#[derive(Clone)] | ||
pub struct Join<Relation, Scalar> { | ||
/// TODO(alexis) Mocked for now. | ||
pub join_type: String, | ||
/// The left input relation. | ||
pub left: Relation, | ||
/// The right input relation. | ||
pub right: Relation, | ||
/// The join expression denoting the join condition that links the two input relations. | ||
pub condition: Scalar, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
//! A logical projection. | ||
/// Logical project operator that specifies output columns. | ||
/// | ||
/// Takes input relation (`Relation`) and defines output columns/expressions | ||
/// (`Scalar`). | ||
#[derive(Clone)] | ||
pub struct Project<Relation, Scalar> { | ||
/// The input relation. | ||
pub child: Relation, | ||
/// TODO(everyone): What exactly is going on here? | ||
pub fields: Vec<Scalar>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
//! A logical scan. | ||
/// Logical scan operator that reads from a base table. | ||
/// | ||
/// Reads from table (`String`) and optionally filters rows using a pushdown predicate | ||
/// (`Scalar`). | ||
#[derive(Clone)] | ||
pub struct Scan<Scalar> { | ||
pub table_name: String, // TODO(alexis): Mocked for now. | ||
/// TODO(alexis) Mocked for now. | ||
pub table_name: String, | ||
/// An optional filter expression for predicate pushdown into scan operators. | ||
pub predicate: Option<Scalar>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters