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

Feature: Support specifying columns to include in the "Attach table" statement. #17439

Closed
dantengsky opened this issue Feb 11, 2025 · 1 comment · Fixed by #17442
Closed

Feature: Support specifying columns to include in the "Attach table" statement. #17439

dantengsky opened this issue Feb 11, 2025 · 1 comment · Fixed by #17442
Labels
C-feature Category: feature

Comments

@dantengsky
Copy link
Member

Summary

Support specifying columns to include in the "Attach table" statement.

e.g.

To create a table named test_tbl that attaches to the path 's3://databend-toronto/1/556/' and includes only the columns col1 and col2, you can use the following SQL statement:

ATTACH TABLE `test_tbl`  (col1, col2) FROM 's3://databend-toronto/1/556/';

If the source table does not contain col1 or col2, the operation will fail.

@dantengsky dantengsky added the C-feature Category: feature label Feb 11, 2025
@wubx
Copy link
Member

wubx commented Feb 11, 2025

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants