Files
impala/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits.test
Michael Brown cddb35be92 IMPALA-7445: separate skippable tables from test_resource_limits
Separate the Hbase and Kudu tables used in test_resource_limits to their
own files so they are skippable in environments where those services are
not used.

Change-Id: I02d9fd0b48817f755e1eee2ae4613e2089fa1973
Reviewed-on: http://gerrit.cloudera.org:8080/11221
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2018-08-15 04:15:46 +00:00

55 lines
1.9 KiB
Plaintext

====
---- QUERY
# Query should succeed.
set CPU_LIMIT_S=10000;
set SCAN_BYTES_LIMIT="10G";
select id from functional.alltypessmall order by 1 limit 1
---- TYPES
INT
---- RESULTS
0
====
---- QUERY
# Query should fail due to exceeding scan bytes limit.
set SCAN_BYTES_LIMIT="100M";
select count(*) from tpch.lineitem l1,tpch.lineitem l2, tpch.lineitem l3 where
l1.l_suppkey = l2.l_linenumber and l1.l_orderkey = l2.l_orderkey and
l1.l_orderkey = l3.l_orderkey group by l1.l_comment, l2.l_comment
having count(*) = 99
---- CATCH
row_regex:.*terminated due to scan bytes limit of 100.00 M.*
====
---- QUERY
# Query should fail due to CPU time limit.
set CPU_LIMIT_S=1;
select count(*) from tpch.lineitem l1,tpch.lineitem l2, tpch.lineitem l3 where
l1.l_suppkey = l2.l_linenumber and l1.l_orderkey = l2.l_orderkey and
l1.l_orderkey = l3.l_orderkey group by l1.l_comment, l2.l_comment
having count(*) = 99
---- CATCH
row_regex:.*terminated due to CPU limit of 1s000ms.*
====
---- QUERY
# Query should fail due to CPU time limit.
set CPU_LIMIT_S=1;
set SCAN_BYTES_LIMIT="100G";
select count(*) from tpch.lineitem l1,tpch.lineitem l2, tpch.lineitem l3 where
l1.l_suppkey = l2.l_linenumber and l1.l_orderkey = l2.l_orderkey and
l1.l_orderkey = l3.l_orderkey group by l1.l_comment, l2.l_comment
having count(*) = 99
---- CATCH
row_regex:.*terminated due to CPU limit of 1s000ms.*
====
---- QUERY
# Query should fail due to exceeding time limit.
set EXEC_TIME_LIMIT_S=2;
set CPU_LIMIT_S=10000;
set SCAN_BYTES_LIMIT="100G";
select count(*) from tpch.lineitem l1,tpch.lineitem l2, tpch.lineitem l3 where
l1.l_suppkey = l2.l_linenumber and l1.l_orderkey = l2.l_orderkey and
l1.l_orderkey = l3.l_orderkey group by l1.l_comment, l2.l_comment
having count(*) = 99
---- CATCH
row_regex:.*expired due to execution time limit of 2s000ms.*
====