mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
IMPALA-4502: test_partition_ddl_predicates breaks on non-HDFS filesystems
This is because that test uses 'set cached' and 'set uncached' which are not supported on non-HDFS filesystems. This patch creates a separate test file for non-HDFS filesystems with only supported queries and invokes the right file based on the filesystem. Change-Id: I8606aa427cb6e50be3395cdde246abb53db5172c Reviewed-on: http://gerrit.cloudera.org:8080/5164 Reviewed-by: Sailesh Mukil <sailesh@cloudera.com> Tested-by: Internal Jenkins
This commit is contained in:
committed by
Internal Jenkins
parent
7bfa6e3e3f
commit
178fd59142
@@ -39,27 +39,6 @@ regex:.+,regex:.+,'j=1/k=a'
|
||||
STRING, STRING, STRING
|
||||
====
|
||||
---- QUERY
|
||||
alter table p1 partition (j<2, k in ("b", "c")) set cached in 'testPool'
|
||||
---- RESULTS
|
||||
'Cached 2 partition(s).'
|
||||
---- TYPES
|
||||
STRING
|
||||
====
|
||||
---- QUERY
|
||||
alter table p1 partition (j<2, j>0, k<>"d") set uncached
|
||||
---- RESULTS
|
||||
'Uncached 2 partition(s).'
|
||||
---- TYPES
|
||||
STRING
|
||||
====
|
||||
---- QUERY
|
||||
alter table p1 partition (j=3 or j=2, k like "%") set uncached
|
||||
---- RESULTS
|
||||
'Uncached 0 partition(s).'
|
||||
---- TYPES
|
||||
STRING
|
||||
====
|
||||
---- QUERY
|
||||
alter table p1 partition (j=2) set fileformat parquet
|
||||
---- RESULTS
|
||||
'Updated 4 partition(s).'
|
||||
38
testdata/workloads/functional-query/queries/QueryTest/partition-ddl-predicates-hdfs-only.test
vendored
Normal file
38
testdata/workloads/functional-query/queries/QueryTest/partition-ddl-predicates-hdfs-only.test
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
====
|
||||
---- QUERY
|
||||
# First create a partitioned table
|
||||
create table p1_hdfs (i int) partitioned by(j int, k string);
|
||||
# Add some partitions
|
||||
alter table p1_hdfs add partition (j=1,k="a");
|
||||
alter table p1_hdfs add partition (j=1,k="b");
|
||||
alter table p1_hdfs add partition (j=1,k="c");
|
||||
alter table p1_hdfs add partition (j=2,k="d");
|
||||
alter table p1_hdfs add partition (j=2,k="e");
|
||||
alter table p1_hdfs add partition (j=2,k="f");
|
||||
alter table p1_hdfs add partition (j=2,k=NULL);
|
||||
alter table p1_hdfs add partition (j=NULL,k="g");
|
||||
alter table p1_hdfs add partition (j=NULL,k=NULL);
|
||||
# Populate the table
|
||||
insert into p1_hdfs partition (j, k) values (100, 1, "a"), (200, 1, "b"), (300, 1, "c");
|
||||
====
|
||||
---- QUERY
|
||||
alter table p1_hdfs partition (j<2, k in ("b", "c")) set cached in 'testPool'
|
||||
---- RESULTS
|
||||
'Cached 2 partition(s).'
|
||||
---- TYPES
|
||||
STRING
|
||||
====
|
||||
---- QUERY
|
||||
alter table p1_hdfs partition (j<2, j>0, k<>"d") set uncached
|
||||
---- RESULTS
|
||||
'Uncached 2 partition(s).'
|
||||
---- TYPES
|
||||
STRING
|
||||
====
|
||||
---- QUERY
|
||||
alter table p1_hdfs partition (j=3 or j=2, k like "%") set uncached
|
||||
---- RESULTS
|
||||
'Uncached 0 partition(s).'
|
||||
---- TYPES
|
||||
STRING
|
||||
====
|
||||
Reference in New Issue
Block a user