databend icon indicating copy to clipboard operation
databend copied to clipboard

feat: copy from FTP and secured FTP source

Open ClSlaid opened this issue 3 years ago • 1 comments

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Summary about this PR

Fixes #7660

Guide

  • Build databend with storage-ftp feature enabled:
cargo build --bin databend-query --features=storage-ftp
  • connect to query with your favorite SQL client
mycli -p3307 -uroot
  • copy from FTP, need to be secure
COPY INTO books FROM 'ftp://my_ftp.example:114/books.csv' CONNECTION=(SECURE='true' USERNAME='me' PASSWORD='pwd example') FILE_FORMAT=(TYPE='CSV');

in the future, copy with FTPS scheme should be supported. waiting for a new version of opendal.

COPY INTO books FROM 'ftps://my_ftp.example:514/books.csv' CONNECTION=(USERNAME='me' PASSWORD='pwd example') FILE_FORMAT=(TYPE='CSV');

Signed-off-by: ClSlaid [email protected]

ClSlaid avatar Sep 23 '22 09:09 ClSlaid

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) Sep 26, 2022 at 10:21AM (UTC)

vercel[bot] avatar Sep 23 '22 09:09 vercel[bot]

wait for #7897 to merge first.

ClSlaid avatar Sep 26 '22 08:09 ClSlaid

wait for #7897 to merge first.

Done, go ahead!

Xuanwo avatar Sep 26 '22 08:09 Xuanwo

Nice PR, let's merge!

Xuanwo avatar Sep 26 '22 11:09 Xuanwo