Skip to content
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

Unloading data into stage #4498

Closed
BohuTANG opened this issue Mar 19, 2022 · 4 comments · Fixed by #5579
Closed

Unloading data into stage #4498

BohuTANG opened this issue Mar 19, 2022 · 4 comments · Fixed by #5579
Assignees
Labels
A-query Area: databend query C-feature Category: feature

Comments

@BohuTANG
Copy link
Member

BohuTANG commented Mar 19, 2022

Summary

  • Unloading into a Databend Internal Stage
  • Unloading into a Databend External Stage
COPY INTO { internalStage | externalStage | externalLocation }
     FROM { [<database_name>.]<table_name> | ( <query> ) }
[ FILE_FORMAT = ( { TYPE = { CSV | JSON | PARQUET } [ formatTypeOptions ] } ) ]
[ copyOptions ]
[ VALIDATION_MODE = RETURN_ROWS ]

Reference:
https://docs.snowflake.com/en/user-guide-data-unload.html

@BohuTANG BohuTANG added the C-feature Category: feature label Mar 19, 2022
@BohuTANG
Copy link
Member Author

Seems we need a Input and Output Format crate with write&read trait? Now, the csv/parquet only has read, cc @sundy-li

@BohuTANG
Copy link
Member Author

For parquet Input/Output format, fuse engine can re-use it too.

@wubx
Copy link
Member

wubx commented Mar 26, 2022

if use CSV, JSON support zip?

@BohuTANG
Copy link
Member Author

if use CSV, JSON support zip?

Sure

@BohuTANG BohuTANG added the A-query Area: databend query label Mar 28, 2022
@sundy-li sundy-li self-assigned this Apr 1, 2022
@sundy-li sundy-li moved this from Todo to In Progress in Databend Query Engine May 20, 2022
Repository owner moved this from In Progress to Done in Databend Query Engine May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query Area: databend query C-feature Category: feature
Projects
Development

Successfully merging a pull request may close this issue.

3 participants