-
Notifications
You must be signed in to change notification settings - Fork 16
feat: graceful URI -> URN migration #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6531aa3
feat: uri -> urn grep replace + regen protos from v0.77.0
benbellick e5df044
feat: fix get urn-based substrait tests passing
benbellick 0625bbb
feat: graceful migration from URI -> URN
benbellick 87bea90
fix: use `from_substrait` in duckdb tests to get tests passing
benbellick 1ccee76
cleanup
benbellick a15ecd8
tweak: drop _urn_aliases
benbellick 8557c0c
make codegen-extensions
benbellick f63a9c0
ruff
benbellick 85f3043
test cleanup
benbellick 66a11f1
fix examples and add CI/CD job to ensure they work
benbellick 9a13e6e
readd extension_uris to extended expression + add test
benbellick 975952d
fix remaining extended expressions missing uris + fmt
benbellick 0167820
chore: make antlr
benbellick 804655b
feat: CICD check for generated code
benbellick 9e7cb06
fix: correct codegen
benbellick 6c357ad
fix: update gen_proto.sh to use uv run protol
benbellick d2f638a
chore: regenerate generate code
benbellick 44b68f4
fix: drop timestamp from codegen
benbellick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Code Generation Check | ||
|
|
||
| on: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| codegen-check: | ||
| name: Verify Code Generation | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Run code generation in devcontainer | ||
| uses: devcontainers/ci@v0.3 | ||
| with: | ||
| runCmd: | | ||
| # Ensure dependencies are installed | ||
| uv sync --extra test --extra gen_proto | ||
| # Run all code generation steps | ||
| make antlr | ||
| ./gen_proto.sh | ||
| make codegen-extensions | ||
|
|
||
| - name: Check for uncommitted changes | ||
| run: | | ||
| # Check for diffs, ignoring timestamp lines | ||
| if ! git diff --quiet --exit-code src/substrait/gen/; then | ||
| echo "Code generation produced changes. Generated code is out of sync!" | ||
| echo "" | ||
| git diff src/substrait/gen/ | ||
| echo "" | ||
| echo "To fix this, run:" | ||
| echo " make antlr" | ||
| echo " ./gen_proto.sh" | ||
| echo " make codegen-extensions" | ||
| echo "Then commit the changes." | ||
| exit 1 | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: Run examples | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [ main ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| example: | ||
| name: Run ${{ matrix.example }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| example: | ||
| - builder_example.py | ||
| - duckdb_example.py | ||
| - adbc_example.py | ||
| - pyarrow_example.py | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| submodules: recursive | ||
| - name: Install uv with python | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: Install package dependencies | ||
| run: | | ||
| uv sync --frozen --extra extensions | ||
| - name: Run ${{ matrix.example }} | ||
| run: | | ||
| uv run examples/${{ matrix.example }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was to make CI/CD not complain about missing
protol