This is an automated email from the ASF dual-hosted git repository.

stigahuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 779a0943acc3ea47c25a27d1661011c93123ced0
Author: wzhou-code <[email protected]>
AuthorDate: Tue Nov 29 20:39:38 2022 -0800

    IMPALA-11715: test_resource_limits_kudu fails
    
    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 <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 .../queries/QueryTest/query-resource-limits-kudu.test         | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git 
a/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits-kudu.test
 
b/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits-kudu.test
index df6a9e026..afd9894ab 100644
--- 
a/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits-kudu.test
+++ 
b/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits-kudu.test
@@ -1,10 +1,9 @@
 ====
 ---- QUERY
-# Bytes limit not enforced for Kudu yet.
+# Bytes limit enforced for Kudu.
+# Add a sleep to slow down query and avoid race with bytes check.
 set SCAN_BYTES_LIMIT="1k";
-select min(l_orderkey) from tpch_kudu.lineitem
----- TYPES
-BIGINT
----- RESULTS
-1
+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.*
 ====

Reply via email to