I have been reviewing the AWS documentation, and cannot seem to understand how the distribution style works and how that data is stored on Redshift. I understand what a columnar storage database is, but when I read the documentation on the distribution style on Redshift it confuses me as to how the data is being stored on the nodes. The distribution style is stated as distributing newly loaded data by rows to the slices of the compute nodes.
For example, EVEN distribution style is defined as:
Even distribution
The leader node distributes the rows across the slices in a round-robin fashion, regardless of the values in any particular column. EVEN distribution is appropriate when a table does not participate in joins or when there is not a clear choice between KEY distribution and ALL distribution. EVEN distribution is the default distribution style.
So how exactly does the data get stored into a columnar storage if the data is being distributed by rows. Does the columnar storage go into affect after the data has been distributed to the compute nodes?
Here are the links to the AWS documentation discussing columnar storage and distribution styles: