Skip to content

Commit 56e7b1e

Browse files
authored
chore(substrait): bump to v0.66.1 (#65)
- bumps substrait to 0.66.1 - updates `buf` config version to v2, config files migrated with `buf config migrate` command
1 parent b78a614 commit 56e7b1e

24 files changed

+1092
-612
lines changed

.devcontainer/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ SHELL ["/bin/bash", "-c"]
55
RUN source "/home/vscode/.sdkman/bin/sdkman-init.sh" && sdk install java 20.0.2-graalce
66
RUN mkdir -p ~/lib && cd ~/lib && curl -L -O http://www.antlr.org/download/antlr-4.13.1-complete.jar
77
ENV ANTLR_JAR="~/lib/antlr-4.13.1-complete.jar"
8+
RUN cd ~ && curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip && \
9+
unzip protoc-25.1-linux-x86_64.zip -d ~/.local && \
10+
rm protoc-25.1-linux-x86_64.zip
11+
RUN curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.50.0/buf-$(uname -s)-$(uname -m)" -o ~/.local/bin/buf && chmod +x ~/.local/bin/buf
812
USER root

buf.gen.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
version: v2
12
plugins:
2-
- name: python
3+
- protoc_builtin: python
34
out: src/substrait/gen
4-
- plugin: buf.build/community/nipunn1313-mypy:v3.5.0
5+
- remote: buf.build/community/nipunn1313-mypy:v3.5.0
56
out: src/substrait/gen
6-
version: v1

buf.work.yaml

-3
This file was deleted.

buf.yaml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
version: v1
2-
breaking:
3-
use:
4-
- FILE
5-
lint:
6-
use:
7-
- DEFAULT
1+
version: v2
2+
modules:
3+
- path: buf_work_dir
4+
lint:
5+
use:
6+
- DEFAULT
7+
except:
8+
- FIELD_NOT_REQUIRED
9+
- PACKAGE_NO_IMPORT_CYCLE
10+
disallow_comment_ignores: true
11+
breaking:
12+
use:
13+
- FILE
14+
except:
15+
- EXTENSION_NO_DELETE
16+
- FIELD_SAME_DEFAULT

gen_proto.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extension_dir=./src/substrait/extensions
1414
python "$submodule_dir"/tools/proto_prefix.py "$tmp_dir" "$namespace" "$src_dir"
1515

1616
# Remove the old python protobuf files
17-
rm -rf "$dest_dir"
17+
rm -rf "$dest_dir/proto"
1818

1919
# Generate the new python protobuf files
2020
buf generate

src/substrait/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
except ImportError:
44
pass
55

6-
__substrait_version__ = "0.56.0"
7-
__substrait_hash__ = "bc4d6fb"
6+
__substrait_version__ = "0.66.1"
7+
__substrait_hash__ = "ff013aa"
88
__minimum_substrait_version__ = "0.30.0"

src/substrait/extensions/functions_arithmetic.yaml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/extensions/functions_comparison.yaml

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/extensions/functions_geometry.yaml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/extensions/functions_string.yaml

+96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/__init__.pyi

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/substrait/gen/antlr/__init__.py

Whitespace-only changes.

src/substrait/gen/antlr/__init__.pyi

Whitespace-only changes.

src/substrait/gen/proto/algebra_pb2.py

+333-306
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)