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: enhance VirtualTable to have expression as value #711

Merged
merged 4 commits into from
Oct 7, 2024
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
5 changes: 3 additions & 2 deletions proto/substrait/algebra.proto
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ message ReadRel {
substrait.extensions.AdvancedExtension advanced_extension = 10;
}

// A table composed of literals.
// A table composed of expressions.
message VirtualTable {
repeated Expression.Literal.Struct values = 1;
repeated Expression.Literal.Struct values = 1 [deprecated = true];
repeated Expression expressions = 2;
}

// A stub type that can be used to extend/introduce new table types outside
Expand Down
5 changes: 4 additions & 1 deletion site/docs/relations/logical_relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@ Read definition types (like the rest of the features in Substrait) are built by
#### Virtual Table

A virtual table is a table whose contents are embedded in the plan itself. The table data
is encoded as records consisting of literal values.
is encoded as records consisting of literal values or expressions that can be resolved without referencing any input data.
For example, a literal, a function call involving literals, or any other expression that does
not require input.

| Property | Description | Required |
| -------- | ----------- | -------- |
| Data | Required | Required |


#### Named Table

A named table is a reference to data defined elsewhere. For example, there may be a catalog
Expand Down
Loading