-
Notifications
You must be signed in to change notification settings - Fork 762
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
External source with new processor #4277
Merged
BohuTANG
merged 13 commits into
databendlabs:main
from
BohuTANG:dev-external-scan-processor-3586-patch-3
Mar 3, 2022
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5d9ffee
Add external source for new processor
BohuTANG 5f7ff9b
Merge branch 'main' into dev-external-scan-processor-3586-patch-3
BohuTANG f2ef6ac
Add s3 storage source
BohuTANG 81da848
Change copy interpreter to new pipeline exectutor
BohuTANG 7cccf1a
Remove unused&old files
BohuTANG 2fa8dfb
Add file_name to ReadSourcePlan
BohuTANG 647792a
Fix copy unit test and improve the s3_external_table create params
BohuTANG f57e40a
Merge with main
BohuTANG b65fa3c
Bump opendal to v0.1.3
BohuTANG 0a7b3b4
Fix the query/Cargo.toml order
BohuTANG 9231aa0
Add errors handler for s3 external table
BohuTANG 5141ea0
Fix conflict with main
BohuTANG afbe5ac
Remove unused dependencies
BohuTANG 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 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 |
---|---|---|
|
@@ -9,6 +9,5 @@ doctest = false | |
test = false | ||
|
||
[dependencies] | ||
|
||
async-trait = "0.1.52" | ||
opendal = "0.1.3" |
This file contains 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 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 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 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 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 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 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.
Why not make
s3
as a special table?Such as a table function that holds the temporary table.
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.
Make s3 as table engine, we can do the unloading as
copy from table into s3://
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.
It seems not extensible enough, considering we will support
azblob
,gcs
, and other locations.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.
But table function can also support insert.
copy from table into s3://
select * from s3://
as_table
to generate a temporary table.I do think it's better to introduce
external table function
, like:select * from external(stage_name, ...)
This may works for
s3
,azblob
, ... anything stage supports.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.
I have add a desc for why make it as a table engine.
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.
BTW, for
select * from @stage ...
, we will convert the@stage
alias to the external table info which get from the metasrv(after we support stage) in the sql parser phase, it will be same asselect * from s3://
did.