[ 
https://issues.apache.org/jira/browse/IMPALA-11929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yx91490 updated IMPALA-11929:
-----------------------------
    Affects Version/s: Impala 4.2.0

> show the section sequence of *.test file when EE test  failed
> -------------------------------------------------------------
>
>                 Key: IMPALA-11929
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11929
>             Project: IMPALA
>          Issue Type: Improvement
>    Affects Versions: Impala 4.2.0
>            Reporter: yx91490
>            Priority: Major
>
> The failure message is implict about which section was failed in the *.test 
> file for EE test, usually I should check the SQL in the following 'Captured 
> stderr call' message one by one.
> for example a failure case:
> {code:java}
> ============================================================ test session 
> starts ============================================================
> platform linux2 -- Python 2.7.16, pytest-2.9.2, py-1.4.32, pluggy-0.3.1 -- 
> /opt/impala/impala/infra/python/env-gcc7.5.0/bin/python
> cachedir: tests/.cache
> rootdir: /opt/impala/impala/tests, inifile: pytest.ini
> plugins: xdist-1.17.1, timeout-1.2.1, random-0.2, forked-0.2
> timeout: 7200s method: signal
> collected 2 items 
> tests/metadata/test_set.py::TestSet::test_set[protocol: beeswax | 
> exec_option: {'batch_size': 0, 'num_nodes': 0, 
> 'disable_codegen_rows_threshold': 5000, 'disable_codegen': False, 
> 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0} | table_format: 
> text/none] FAILED
> ========================================================== short test summary 
> info ==========================================================
> FAIL tests/metadata/test_set.py::TestSet::()::test_set[protocol: beeswax | 
> exec_option: {'batch_size': 0, 'num_nodes': 0, 
> 'disable_codegen_rows_threshold': 5000, 'disable_codegen': False, 
> 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0} | table_format: 
> text/none]
> ================================================================= FAILURES 
> ==================================================================
>  TestSet.test_set[protocol: beeswax | exec_option: {'batch_size': 0, 
> 'num_nodes': 0, 'disable_codegen_rows_threshold': 5000, 'disable_codegen': 
> False, 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0} | 
> table_format: text/none] 
> tests/metadata/test_set.py:41: in test_set
>     self.run_test_case('QueryTest/set', vector)
> tests/common/impala_test_suite.py:622: in run_test_case
>     for i, test_section in sections:
> E   ValueError: need more than 1 value to unpack
> ----------------------------------------------------------- Captured stderr 
> setup -----------------------------------------------------------
> SET 
> client_identifier=metadata/test_set.py::TestSet::()::test_set[protocol:beeswax|exec_option:{'batch_size':0;'num_nodes':0;'disable_codegen_rows_threshold':5000;'disable_codegen':False;'abort_on_error':1;'exec_single_node_rows_threshold':0}|table_format:text/none];
> -- connecting to: localhost:21000
> -- connecting to localhost:21050 with impyla
> -- 2023-02-17 19:27:40,375 INFO     MainThread: Closing active operation
> -- connecting to localhost:28000 with impyla
> -- 2023-02-17 19:27:40,388 INFO     MainThread: Closing active operation
> ----------------------------------------------------------- Captured stderr 
> call ------------------------------------------------------------
> SET 
> client_identifier=metadata/test_set.py::TestSet::()::test_set[protocol:beeswax|exec_option:{'batch_size':0;'num_nodes':0;'disable_codegen_rows_threshold':5000;'disable_codegen':False;'abort_on_error':1;'exec_single_node_rows_threshold':0}|table_format:text/none];
> -- executing against localhost:21000
> use functional;
> -- 2023-02-17 19:27:40,422 INFO     MainThread: Started query 
> eb4f8f2fab388efa:e7c9f66b00000000
> SET 
> client_identifier=metadata/test_set.py::TestSet::()::test_set[protocol:beeswax|exec_option:{'batch_size':0;'num_nodes':0;'disable_codegen_rows_threshold':5000;'disable_codegen':False;'abort_on_error':1;'exec_single_node_rows_threshold':0}|table_format:text/none];
> SET batch_size=0;
> SET num_nodes=0;
> SET disable_codegen_rows_threshold=5000;
> SET disable_codegen=False;
> SET abort_on_error=1;
> SET exec_single_node_rows_threshold=0;
> -- 2023-02-17 19:27:40,424 INFO     MainThread: Loading query test file: 
> /opt/impala/impala/testdata/workloads/functional-query/queries/QueryTest/set.test
> ========================================================= 1 failed in 0.19 
> seconds ========================================================== {code}
> It would be better to  print the section sequence in the top error message.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to