Skip to content

Commit

Permalink
chore(substrait): bump to v0.66.1 (#65)
Browse files Browse the repository at this point in the history
- bumps substrait to 0.66.1
- updates `buf` config version to v2, config files migrated with `buf
config migrate` command
  • Loading branch information
tokoko authored Feb 12, 2025
1 parent b78a614 commit 56e7b1e
Show file tree
Hide file tree
Showing 24 changed files with 1,092 additions and 612 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ SHELL ["/bin/bash", "-c"]
RUN source "/home/vscode/.sdkman/bin/sdkman-init.sh" && sdk install java 20.0.2-graalce
RUN mkdir -p ~/lib && cd ~/lib && curl -L -O http://www.antlr.org/download/antlr-4.13.1-complete.jar
ENV ANTLR_JAR="~/lib/antlr-4.13.1-complete.jar"
RUN cd ~ && curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip && \
unzip protoc-25.1-linux-x86_64.zip -d ~/.local && \
rm protoc-25.1-linux-x86_64.zip
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
USER root
6 changes: 3 additions & 3 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: v2
plugins:
- name: python
- protoc_builtin: python
out: src/substrait/gen
- plugin: buf.build/community/nipunn1313-mypy:v3.5.0
- remote: buf.build/community/nipunn1313-mypy:v3.5.0
out: src/substrait/gen
version: v1
3 changes: 0 additions & 3 deletions buf.work.yaml

This file was deleted.

23 changes: 16 additions & 7 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
version: v1
breaking:
use:
- FILE
lint:
use:
- DEFAULT
version: v2
modules:
- path: buf_work_dir
lint:
use:
- DEFAULT
except:
- FIELD_NOT_REQUIRED
- PACKAGE_NO_IMPORT_CYCLE
disallow_comment_ignores: true
breaking:
use:
- FILE
except:
- EXTENSION_NO_DELETE
- FIELD_SAME_DEFAULT
2 changes: 1 addition & 1 deletion gen_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extension_dir=./src/substrait/extensions
python "$submodule_dir"/tools/proto_prefix.py "$tmp_dir" "$namespace" "$src_dir"

# Remove the old python protobuf files
rm -rf "$dest_dir"
rm -rf "$dest_dir/proto"

# Generate the new python protobuf files
buf generate
Expand Down
4 changes: 2 additions & 2 deletions src/substrait/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
except ImportError:
pass

__substrait_version__ = "0.56.0"
__substrait_hash__ = "bc4d6fb"
__substrait_version__ = "0.66.1"
__substrait_hash__ = "ff013aa"
__minimum_substrait_version__ = "0.30.0"
2 changes: 1 addition & 1 deletion src/substrait/extensions/functions_arithmetic.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions src/substrait/extensions/functions_comparison.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/substrait/extensions/functions_geometry.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 96 additions & 0 deletions src/substrait/extensions/functions_string.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/substrait/gen/__init__.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
639 changes: 333 additions & 306 deletions src/substrait/gen/proto/algebra_pb2.py

Large diffs are not rendered by default.

Loading

0 comments on commit 56e7b1e

Please sign in to comment.