Unfortunately,
Auto create table option in copy activity sink only gives default distribution i,e. ROUND_ROBIN
.
Alternatives :
- If your sink table schema is different every time, then after copy activity, create a duplicate table for your table with your desired distribution using
CTAS
. After creating duplicate table, drop your original Auto table and rename it as original table - If your sink table schema is same for every time and if you know the schema, then create table before copying the data. Give your desired distributions in the create table query. For executing the query before copy, you can use Script activity before copy activity (or) pre-copy script in the copy activity sink.