-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add datafusion-substrait crate #4543
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
38 commits
Select commit
Hold shift + click to select a range
b717d4f
Initial commit
andygrove 661af4b
initial commit
andygrove d91fa00
failing test
andygrove b17155a
table scan projection
andygrove 0f1b7e3
closer
andygrove 8dbc69c
test passes, with some hacks
andygrove 76f95b1
Merge pull request #1 from andygrove/roundtrip
andygrove d2b18c8
use DataFrame (#2)
andygrove 09a0db6
update README
andygrove 16ccb02
update dependency
andygrove 9aac089
code cleanup (#3)
andygrove a865900
Add support for Filter operator and BinaryOp expressions (#4)
andygrove db8d439
GitHub action (#5)
andygrove 61e4cc3
Split code into producer and consumer modules (#6)
andygrove 03745da
Support more functions and scalar types (#7)
Dandandan a75476a
Use substrait 0.1 and datafusion 8.0 (#8)
andygrove 2644b81
update datafusion to 10.0 and substrait to 0.2 (#11)
JanKaul 3349464
Add basic join support (#12)
andygrove 9e28e1a
Added fetch support (#23)
nseekhao 161b774
Upgrade to DataFusion 13.0.0 (#25)
andygrove c8c8732
Add sort consumer and producer (#24)
nseekhao e1b9569
Add serializer/deserializer (#26)
nseekhao 09b2102
Add plan and function extension support (#27)
nseekhao f41f6dc
Implement GROUP BY (#28)
nseekhao bfa3c0c
Changed field reference from mask to direct reference (#29)
nseekhao 3f892d4
Handle SubqueryAlias (#30)
nseekhao dbd315c
Add support for SELECT DISTINCT (#31)
nseekhao 637a2f3
Implement BETWEEN (#32)
nseekhao 2b87bb9
Add case (#33)
nseekhao e7fa58e
feat: support explicit catalog/schema names in ReadRel (#34)
waynexia aa9cfb1
move files to subfolder
andygrove 27a9dcc
fix merge conflict
andygrove 76c2e19
RAT
andygrove 60466ce
remove rust.yaml
andygrove 24cfd8f
revert .gitignore changes
andygrove 474e2d5
tomlfmt
andygrove 4ba586d
tomlfmt
andygrove 2d99a0a
Merge remote-tracking branch 'apache/master' into substrait
andygrove 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,32 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
[package] | ||
name = "datafusion-substrait" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
async-recursion = "1.0" | ||
datafusion = "13.0" | ||
prost = "0.9" | ||
prost-types = "0.9" | ||
substrait = "0.2" | ||
tokio = "1.17" | ||
|
||
[build-dependencies] | ||
prost-build = { version = "0.9" } |
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,34 @@ | ||
<!--- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
# DataFusion + Substrait | ||
|
||
[Substrait](https://substrait.io/) provides a cross-language serialization format for relational algebra, based on | ||
protocol buffers. | ||
|
||
This repository provides a Substrait producer and consumer for DataFusion: | ||
|
||
- The producer converts a DataFusion logical plan into a Substrait protobuf. | ||
- The consumer converts a Substrait protobuf into a DataFusion logical plan. | ||
|
||
Potential uses of this crate: | ||
|
||
- Replace the current [DataFusion protobuf definition](https://github.com/apache/arrow-datafusion/blob/master/datafusion-proto/proto/datafusion.proto) used in Ballista for passing query plan fragments to executors | ||
- Make it easier to pass query plans over FFI boundaries, such as from Python to Rust | ||
- Allow Apache Calcite query plans to be executed in DataFusion |
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.