Files
impala/testdata/workloads/functional-query/queries/QueryTest/insert-random-partition.test
Tim Armstrong 58cd69ac48 IMPALA-402: test for random partitioning in insert
This adds a basic regression test for the bug reported in IMPALA-402.

Testing:
Exhaustive build.

Looped the modified test overnight.

Change-Id: I4bbca5c64977cadf79dabd72f0c8876a40fdf410
Reviewed-on: http://gerrit.cloudera.org:8080/11799
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2018-11-06 00:00:12 +00:00

34 lines
657 B
Plaintext

====
---- QUERY
create table t (i int) partitioned by (p string)
---- RESULTS
'Table has been created.'
====
---- QUERY
# IMPALA-402: dynamic partitioning with random functions should behave sanely. Use uuid()
# to guarantee that the partition keys will be unique.
insert into t partition(p)
select id, uuid() from functional.alltypestiny
====
---- QUERY
select count(distinct p)
from t
---- TYPES
BIGINT
---- RESULTS
8
====
---- QUERY
# IMPALA-402: also test without clustering
insert into t partition(p) /*+noclustered*/
select id, uuid() from functional.alltypestiny
====
---- QUERY
select count(distinct p)
from t
---- TYPES
BIGINT
---- RESULTS
16
====