-
Notifications
You must be signed in to change notification settings - Fork 3
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
ALTER TABLE MOVE to external table #595
Comments
copy will suffice for now |
remember about |
Shoudl the user be able to specify the output file name? What about format settings? |
I missed the "move to external table" part. Format and storage location should be inferred from table. Something like:
|
Well, since the goal is to move to a different table, this is slightly more complex. Some constraints light schema and partition expression must match, similar to attach partition functionality. |
I ignored the constraints for now and I am able to move a clickhouse partition from a merge tree table to s3 table engine, but there is a caveat: the partition must contain only one part. The reason is: multiple parts require multiple files on s3, therefore the s3 engine should be created with something that uniquely identifies files, such as |
I need to pay attention to this: |
Investigate why inserts are not supported and how can we fix it |
For MergeTree tables we need an efficient way to move parts to Parquet. One part should map to one Parquet file, and MergeTree blocks should map to row groups. Sorting should be preserved.
The text was updated successfully, but these errors were encountered: