forked from substrait-io/substrait
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to ideally support majority of tpch queries
- Remove aggregate expressions type from generalized expressions. (only allow aggregate expressions as root expressions for aggregation) - Update function mapping to support options - Remove named structs from type unions (should only be used in special places as root, not in arbitrary hierarchy) - Add project, join, fetch, aggregate, sort, set logical relational operations. - Introduce key scalar and aggregate functions in functions yaml. - Remove old extensions docs Address substrait-io#42, substrait-io#43, substrait-io#44
- Loading branch information
Showing
11 changed files
with
500 additions
and
68 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
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 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 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,18 +1,58 @@ | ||
functions: | ||
- name: add | ||
id: 0 | ||
arguments: | ||
- type: i32 | ||
variadic: 2..N | ||
return: i32 | ||
- name: lt | ||
id: 1 | ||
arguments: | ||
- type: i32 | ||
- type: i32 | ||
return: boolean | ||
- name: and | ||
id: 3 | ||
arguments: - type: boolean | ||
variadic: 2..N | ||
return: boolean | ||
- name: 'sum' | ||
description: "Sum a set of values." | ||
options: | ||
overflow: [SILENT, SATURATE, ERROR] | ||
variants: | ||
- name: scalar | ||
decomposable: MANY | ||
parameters: | ||
- K: [i8,i16,i32,i64,fp32,fp64] | ||
arguments: | ||
- type: K | ||
intermediate: K | ||
return: K | ||
- name: decimal | ||
decomposable: MANY | ||
parameters: | ||
integer: | ||
- P: "1..38" | ||
- S: "1..38" | ||
arguments: | ||
- type: "DECIMAL<P,S>" | ||
intermediate: "DECIMAL<38,S>" | ||
return: "DECIMAL<38,S>" | ||
- name: 'avg' | ||
description: "Average a set of values." | ||
options: | ||
overflow: [SILENT, SATURATE, ERROR] | ||
variants: | ||
- name: scalar | ||
decomposable: MANY | ||
parameters: | ||
- K: [i8,i16,i32,i64,fp32,fp64] | ||
arguments: | ||
- type: K | ||
intermediate: "STRUCT<sum:K,count:i64>" | ||
return: K | ||
- name: decimal | ||
decomposable: MANY | ||
parameters: | ||
integer: | ||
- P: "1..38" | ||
- S: "1..38" | ||
arguments: | ||
- type: "DECIMAL<P,S>" | ||
intermediate: "STRUCT<DECIMAL<38,S>,count:i64>" | ||
return: "DECIMAL<38,S>" | ||
- name: 'count' | ||
description: "Average a set of values." | ||
options: | ||
overflow: [SILENT, SATURATE, ERROR] | ||
decomposable: MANY | ||
parameters: | ||
- K | ||
arguments: | ||
- type: K | ||
intermediate: i64 | ||
return: i64 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.