-
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
3240e31
commit 1f7d7fc
Showing
9 changed files
with
153 additions
and
113 deletions.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use relation::RelationExpression; | ||
use scalar::ScalarExpression; | ||
|
||
mod relation; | ||
mod scalar; | ||
|
||
pub use relation::{LogicalExpression, PhysicalExpression}; | ||
Check warning on line 7 in optd-types/src/expression/mod.rs GitHub Actions / clippy[clippy] optd-types/src/expression/mod.rs#L7
Raw output
|
||
|
||
/// A type representing an optimization operator in the memo table. | ||
pub enum Expression { | ||
Check warning on line 10 in optd-types/src/expression/mod.rs GitHub Actions / clippy[clippy] optd-types/src/expression/mod.rs#L10
Raw output
|
||
RelationExpression(RelationExpression), | ||
ScalarExpression(ScalarExpression), | ||
} |
2 changes: 1 addition & 1 deletion
2
...s/src/memo/relation/logical_expression.rs → ...-types/src/expression/relation/logical.rs
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mod logical; | ||
pub use logical::LogicalExpression; | ||
|
||
mod physical; | ||
pub use physical::PhysicalExpression; | ||
|
||
/// A type representing logical or physical expressions in the memo table. | ||
pub enum RelationExpression { | ||
Check warning on line 8 in optd-types/src/expression/relation/mod.rs GitHub Actions / clippy[clippy] optd-types/src/expression/relation/mod.rs#L8
Raw output
|
||
LogicalExpression(LogicalExpression), | ||
PhysicalExpression(PhysicalExpression), | ||
} |
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
2 changes: 1 addition & 1 deletion
2
optd-types/src/memo/scalar.rs → optd-types/src/expression/scalar.rs
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,4 +1,4 @@ | ||
/// A type that represent scalar SQL expression / predicates. | ||
/// | ||
/// TODO Add fields to this type. | ||
pub struct Scalar; | ||
pub struct ScalarExpression; | ||
Check warning on line 4 in optd-types/src/expression/scalar.rs GitHub Actions / clippy[clippy] optd-types/src/expression/scalar.rs#L4
Raw output
|
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.