Do I Need to Set a Distribution Key After Setting a Primary Key?¶
No, you only need to set the primary key. By default, the first column of the primary key is selected as the distribution key. If both are set, the primary key must contain the distribution key.