blob: 65c9256d6f2643717e9111ffd5287558d7d9b09e [file] [log] [blame]
create table tst1(key STRING, cnt INT);
INSERT OVERWRITE TABLE tst1
SELECT a.key, count(1) FROM src a group by a.key;
SELECT sum(a.cnt) FROM tst1 a JOIN tst1 b ON a.key = b.key;