Skip to content

Commit 29fc384

Browse files
Damien EscaichDamien Escaich
Damien Escaich
authored and
Damien Escaich
committed
Add Check the distribution
1 parent 78ae15a commit 29fc384

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,16 @@ First cast to CLOB, substr the first 32/64k characters then cast to VARCHAR
8383
Select CAST(substr(cast(jsonField as CLOB), 1, 32000) AS VARCHAR(32000))
8484
from my_database.my_table;
8585
```
86+
87+
## Skew and data distribution
88+
89+
### Check the distribution of a table
90+
91+
```sql
92+
select
93+
hashamp(hashbucket(hashrow(<primary index>))) as amp
94+
, count(*)
95+
from my_database.my_table
96+
group by 1
97+
order by 2 desc;
98+
```

0 commit comments

Comments
 (0)