Skip to content

Commit 3a4fb95

Browse files
committed
ci: keep extension copying code
1 parent 7433244 commit 3a4fb95

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ You can run the full code generation using the following command or use the indi
3737
pixi run codegen
3838
```
3939

40+
## Extension Copying
41+
42+
Copy the core function extensions into substrait-python
43+
44+
```
45+
pixi run copy-extensions
46+
```
47+
4048
## Antlr grammar
4149

4250
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.
File renamed without changes.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ update-substrait = [ { task = "update-submodule" }, { task = "codegen" }]
5656

5757
update-submodule = "./update_submodule.sh"
5858

59-
codegen = [{ task = "antlr" }, { task = "codegen-extensions" }]
59+
codegen = [{ task = "antlr" }, { task = "copy-extensions" }, { task = "codegen-extensions" }]
6060

6161
check-codegen = "./check_codegen.sh"
6262

63+
copy-extensions = "./copy_extension_yamls.sh"
64+
6365
antlr = """
6466
cd third_party/substrait/grammar \
6567
&& antlr4 -o ../../../src/substrait/gen/antlr -Dlanguage=Python3 SubstraitType.g4 \

0 commit comments

Comments
 (0)