-
Notifications
You must be signed in to change notification settings - Fork 3
Revive repo: CI, Tests and type system (partial) (closes #3) #5
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
Open
anasik
wants to merge
23
commits into
substrait-io:main
Choose a base branch
from
anasik:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
8c438d8
bump substrait submodule to v0.99.0
anasik 7923417
target net10, update Protobuf and Grpc packages
anasik 8407535
add .editorconfig
anasik 4445c4d
migrate sln to slnx, add test project, add ci workflow
anasik 11e7189
Fix namespace in Relation/*
anasik 8667ae5
Filescoped namespace and fixed import
anasik 6fc9661
Simple and Compound Types
anasik 5c7abea
trailing newline false
anasik dc9755a
remove trailing /n
anasik 8195f41
Fix bad namespace import in SubstraitRelVisitorTests.cs
anasik 627cf91
Add default implementations in ITypeVisitor
anasik 6ec4b90
Rename namespaces from Substrait.Core.Type to Substrait.Core.Types fo…
anasik 4b4441e
Apply suggestion from @nielspardon
anasik f13942a
Argument Validation in TypeCreator
anasik 492e47d
Update CI configuration and add project files for code style enforcement
anasik d5ce487
Add missing newlines at the end of multiple files
anasik 2dc1d2d
upgrade to xunit v3, drop coverlet
anasik cfab686
Make SubstraitRelVisitor's Visit/Fallback overridable and use Argumen…
anasik 0f6812d
Return concrete types from every TypeCreator factory method instead…
anasik 52ec562
Enable compilation of Protobuf files in Substrait.Core.csproj
anasik 0173627
remove trailing /n
anasik fa4793e
⏺ Fix Struct/Func to defensively copy Fields/ParameterTypes on init, …
anasik 82db270
Add missing type-system tests from review
anasik 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
|
|
||
| [*.cs] | ||
| charset = utf-8-bom | ||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| [*.{csproj,props,targets,slnx,json,yml,yaml}] | ||
| indent_style = space | ||
| indent_size = 2 | ||
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,2 @@ | ||
| * text=auto eol=lf | ||
| *.png binary |
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,39 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
|
anasik marked this conversation as resolved.
|
||
| steps: | ||
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4 | ||
| with: | ||
| dotnet-version: "10.0.x" | ||
|
|
||
| - name: Restore | ||
| run: dotnet restore substrait-csharp.slnx | ||
|
|
||
| - name: Check code style | ||
| run: dotnet format substrait-csharp.slnx --verify-no-changes | ||
|
anasik marked this conversation as resolved.
|
||
|
|
||
| - name: Build | ||
| run: dotnet build substrait-csharp.slnx --no-restore --configuration Release | ||
|
|
||
| - name: Test | ||
| run: dotnet test substrait-csharp.slnx --no-build --configuration Release | ||
|
anasik marked this conversation as resolved.
|
||
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,6 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | ||
| <AnalysisLevel>latest-recommended</AnalysisLevel> | ||
| </PropertyGroup> | ||
| </Project> |
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,6 @@ | ||
| { | ||
| "sdk": { | ||
| "version": "10.0.100", | ||
| "rollForward": "latestMinor" | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// The AGGREGATE relational operator representing GROUP BY semantics, <see cref="Protobuf.AggregateRel"/> | ||
| /// </summary> | ||
| public class Aggregate : Rel | ||
| { | ||
| /// <summary> | ||
| /// The AGGREGATE relational operator representing GROUP BY semantics, <see cref="Protobuf.AggregateRel"/> | ||
| /// </summary> | ||
| public class Aggregate : Rel | ||
| { | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// The FETCH relational operator representing LIMIT or TOP semantics, <see cref="Protobuf.FetchRel"/> | ||
| /// </summary> | ||
| public class Fetch : Rel | ||
| { | ||
| /// <summary> | ||
| /// The FETCH relational operator representing LIMIT or TOP semantics, <see cref="Protobuf.FetchRel"/> | ||
| /// </summary> | ||
| public class Fetch : Rel | ||
| { | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// The FILTER relational operator, <see cref="Protobuf.FilterRel"/> | ||
| /// </summary> | ||
| public class Filter : Rel | ||
| { | ||
| /// <summary> | ||
| /// The FILTER relational operator, <see cref="Protobuf.FilterRel"/> | ||
| /// </summary> | ||
| public class Filter : Rel | ||
| { | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// The binary JOIN relational operator, <see cref="Protobuf.JoinRel"/> | ||
| /// </summary> | ||
| public class Join : Rel | ||
| { | ||
| /// <summary> | ||
| /// The binary JOIN relational operator, <see cref="Protobuf.JoinRel"/> | ||
| /// </summary> | ||
| public class Join : Rel | ||
| { | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// The PROJECT relational operator representing calculated expressions of fields, <see cref="Protobuf.ProjectRel"/> | ||
| /// </summary> | ||
| public class Project : Rel | ||
| { | ||
| /// <summary> | ||
| /// The PROJECT relational operator representing calculated expressions of fields, <see cref="Protobuf.ProjectRel"/> | ||
| /// </summary> | ||
| public class Project : Rel | ||
| { | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// The READ relational operator representing data scan, <see cref="Protobuf.ReadRel"/> | ||
| /// </summary> | ||
| public class Read : Rel | ||
| { | ||
| /// <summary> | ||
| /// The READ relational operator representing data scan, <see cref="Protobuf.ReadRel"/> | ||
| /// </summary> | ||
| public class Read : Rel | ||
| { | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// Base type for all relational operators, <see cref="Protobuf.Rel"/> | ||
| /// </summary> | ||
| public abstract class Rel | ||
| { | ||
| /// <summary> | ||
| /// Base type for all relational operators, <see cref="Protobuf.Rel"/> | ||
| /// </summary> | ||
| abstract public class Rel | ||
| { | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| namespace Substrait.Relation | ||
| namespace Substrait.Core.Relation; | ||
|
|
||
| /// <summary> | ||
| /// The SORT relational operator representing ORDER BY semantics, <see cref="Protobuf.SortRel"/> | ||
| /// </summary> | ||
| public class Sort : Rel | ||
| { | ||
| /// <summary> | ||
| /// The SORT relational operator representing ORDER BY semantics, <see cref="Protobuf.SortRel"/> | ||
| /// </summary> | ||
| public class Sort : Rel | ||
| { | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.