You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the upgrade script to upgrade the submodule and regenerate the protobuf stubs.
29
28
30
29
```
31
-
./update_proto.sh <version>
30
+
uv sync --extra gen_proto
31
+
uv run ./update_proto.sh <version>
32
32
```
33
33
34
-
## b) Manual upgrade
34
+
## Antlr grammar
35
35
36
-
### Upgrade the Substrait submodule
36
+
Substrait uses antlr grammar to derive output types of extension functions. Make sure java is installed and ANTLR_JAR environment variable is set. Take a look at .devcontainer/Dockerfile for example setup.
37
37
38
38
```
39
-
cd third_party/substrait
40
-
git checkout <version>
41
-
cd -
42
-
git commit . -m "Use submodule <version>"
39
+
make antlr
43
40
```
44
41
45
-
### Generate protocol buffers
46
-
Generate the protobuf files manually. Requires protobuf `v3.20.1`.
42
+
## Extensions stubs
43
+
44
+
Substrait uses jsonschema to describe the data model for extension files.
45
+
47
46
```
48
-
./gen_proto.sh
47
+
make codegen-extensions
49
48
```
50
49
50
+
# Lint & Format
51
+
52
+
Run the following make commands to lint and format with ruff.
0 commit comments