mirror of
https://github.com/apache/impala.git
synced 2026-01-10 00:00:16 -05:00
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>
34 lines
657 B
Plaintext
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
|
|
====
|