mirror of
https://github.com/apache/impala.git
synced 2026-02-02 06:00:36 -05:00
test_resource_limits_kudu assumes scan_bytes_limit not enforced for Kudu. Commit for IMPALA-11702 added bytes read counter for Kudu scanner so that scan_bytes_limit was enforced for Kudu. This patch fixs test_resource_limits_kudu. Testing: - Executed test_resource_limits_kudu in a loop on local machine. - Passed core run. Change-Id: I77e960bb9fd539442e12866be4a1c5f91dd8aca4 Reviewed-on: http://gerrit.cloudera.org:8080/19288 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
10 lines
290 B
Plaintext
10 lines
290 B
Plaintext
====
|
|
---- QUERY
|
|
# Bytes limit enforced for Kudu.
|
|
# Add a sleep to slow down query and avoid race with bytes check.
|
|
set SCAN_BYTES_LIMIT="1k";
|
|
select sleep(10000) union select min(l_orderkey) from tpch_kudu.lineitem
|
|
---- CATCH
|
|
row_regex:.*terminated due to scan bytes limit of 1.00 K.*
|
|
====
|