Skip to content

Commit

Permalink
Run update-substrait.R
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed Feb 20, 2023
1 parent dd6fb9c commit 87dc0b6
Show file tree
Hide file tree
Showing 23 changed files with 566 additions and 2,507 deletions.
2 changes: 1 addition & 1 deletion data-raw/update-substrait.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Update the substrait .proto files ----
# Requirements: the protoc command-line utility; python3 with pip3 install protobuf

substrait_version <- "0.20.0"
substrait_version <- "0.24.0"
dest_path <- paste0("data-raw/substrait-", substrait_version)

curl::curl_download(
Expand Down
42 changes: 42 additions & 0 deletions inst/substrait/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
Release Notes
---

## [0.24.0](https://github.com/substrait-io/substrait/compare/v0.23.0...v0.24.0) (2023-02-12)


### Features

* add round function ([#322](https://github.com/substrait-io/substrait/issues/322)) ([57121c8](https://github.com/substrait-io/substrait/commit/57121c8ca6f1fe815e98eda8962f8f84736c58e2))

## [0.23.0](https://github.com/substrait-io/substrait/compare/v0.22.0...v0.23.0) (2023-01-22)


### Features

* add extended expression for expression only evaluation ([#405](https://github.com/substrait-io/substrait/issues/405)) ([d35f0ed](https://github.com/substrait-io/substrait/commit/d35f0ed98ccefe31a90d53ff887402636a74bbd1))
* **spec:** add physical plans for hashJoin and mergeJoin ([#336](https://github.com/substrait-io/substrait/issues/336)) ([431651e](https://github.com/substrait-io/substrait/commit/431651efbd64958d2611b035ffdb25f589b28477))


### Bug Fixes

* update extension yaml files to match type-syntax spec ([#423](https://github.com/substrait-io/substrait/issues/423)) ([0608878](https://github.com/substrait-io/substrait/commit/0608878b25e7f9b4b3ffe33662eea9ef0f016548))

## [0.22.0](https://github.com/substrait-io/substrait/compare/v0.21.1...v0.22.0) (2022-12-18)


### Features

* add bitwise NOT, AND, OR & XOR functions ([#370](https://github.com/substrait-io/substrait/issues/370)) ([81e34d4](https://github.com/substrait-io/substrait/commit/81e34d4054ff0dbde23ac749fbb8fcc232989c5d))

## [0.21.1](https://github.com/substrait-io/substrait/compare/v0.21.0...v0.21.1) (2022-12-04)


### Bug Fixes

* rename regex_string_split to regexp_string_split ([#393](https://github.com/substrait-io/substrait/issues/393)) ([f9f4967](https://github.com/substrait-io/substrait/commit/f9f4967e6785b49eccb64a42497b5b4aaffa63ff))

## [0.21.0](https://github.com/substrait-io/substrait/compare/v0.20.0...v0.21.0) (2022-11-27)


### Features

* add nested type constructor expressions ([#351](https://github.com/substrait-io/substrait/issues/351)) ([b64d30b](https://github.com/substrait-io/substrait/commit/b64d30b28077973dd94f1f49e5016662a35bcf56))
* add title to simple extensions schema ([#387](https://github.com/substrait-io/substrait/issues/387)) ([2819ecc](https://github.com/substrait-io/substrait/commit/2819ecc69175b96eefb8a73fb4b533431890f3da))

## [0.20.0](https://github.com/substrait-io/substrait/compare/v0.19.0...v0.20.0) (2022-11-20)


Expand Down
17 changes: 0 additions & 17 deletions inst/substrait/ci/commit_messages.sh

This file was deleted.

112 changes: 112 additions & 0 deletions inst/substrait/extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,118 @@ scalar_functions:
overflow:
values: [ SILENT, SATURATE, ERROR ]
return: i64
-
name: "bitwise_not"
description: >
Return the bitwise NOT result for one integer input.
impls:
- args:
- name: x
value: i8
return: i8
- args:
- name: x
value: i16
return: i16
- args:
- name: x
value: i32
return: i32
- args:
- name: x
value: i64
return: i64
-
name: "bitwise_and"
description: >
Return the bitwise AND result for two integer inputs.
impls:
- args:
- name: x
value: i8
- name: y
value: i8
return: i8
- args:
- name: x
value: i16
- name: y
value: i16
return: i16
- args:
- name: x
value: i32
- name: y
value: i32
return: i32
- args:
- name: x
value: i64
- name: y
value: i64
return: i64
-
name: "bitwise_or"
description: >
Return the bitwise OR result for two given integer inputs.
impls:
- args:
- name: x
value: i8
- name: y
value: i8
return: i8
- args:
- name: x
value: i16
- name: y
value: i16
return: i16
- args:
- name: x
value: i32
- name: y
value: i32
return: i32
- args:
- name: x
value: i64
- name: y
value: i64
return: i64
-
name: "bitwise_xor"
description: >
Return the bitwise XOR result for two integer inputs.
impls:
- args:
- name: x
value: i8
- name: y
value: i8
return: i8
- args:
- name: x
value: i16
- name: y
value: i16
return: i16
- args:
- name: x
value: i32
- name: y
value: i32
return: i32
- args:
- name: x
value: i64
- name: y
value: i64
return: i64

aggregate_functions:
- name: "sum"
Expand Down
12 changes: 6 additions & 6 deletions inst/substrait/extensions/functions_arithmetic_decimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ aggregate_functions:
values: [ SILENT, SATURATE, ERROR ]
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: "DECIMAL<38,S>?"
return: "DECIMAL<38,S>?"
intermediate: "DECIMAL?<38,S>"
return: "DECIMAL?<38,S>"
- name: "avg"
description: Average a set of values.
impls:
Expand All @@ -137,8 +137,8 @@ aggregate_functions:
value: "DECIMAL<P, S>"
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: "DECIMAL<P, S>?"
return: "DECIMAL<P, S>?"
intermediate: "DECIMAL?<P, S>"
return: "DECIMAL?<P, S>"
- name: "max"
description: Max a set of values.
impls:
Expand All @@ -147,5 +147,5 @@ aggregate_functions:
value: "DECIMAL<P,S>"
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: "DECIMAL<P, S>?"
return: "DECIMAL<P, S>?"
intermediate: "DECIMAL?<P, S>"
return: "DECIMAL?<P, S>"
Loading

0 comments on commit 87dc0b6

Please sign in to comment.