If you create a table `CREATE TABLE ... DISTRIBUTE...
# questions-and-troubleshooting
m
If you create a table
CREATE TABLE ... DISTRIBUTED BY HASH(id)
without specifying
BUCKETS
how many buckets are used? Or are any buckets used? In
SELECT * FROM tables_config
I'm seeing
DISTRIBUTE_TYPE = HASH
and
DISTRIBUTE_BUCKET = 0
for a number of my tables and therefore wondering about this.
е
new buckets are added during data loading
it’s 16 buckets by default (static), but becomes dynamic only if you explicitly configure the
bucket_size
property to enable on-demand bucket expansion during data loading.
m
Why doesn't
DISTRIBUTE_BUCKET = 0
report as 16 then?
е
i would image SR to hash data to static buckets on data loading and not do that ahead of time