[
https://issues.apache.org/jira/browse/IMPALA-15003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18081864#comment-18081864
]
ASF subversion and git services commented on IMPALA-15003:
----------------------------------------------------------
Commit 98195beac825fb860c58c1fd5afdd9fd0c49039c in impala's branch
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=98195beac ]
IMPALA-15003: More robust way to verify operator details
test_cancelled_nodes_in_exec_summary verifies that operator details have
expected CANCELLED markers. However, the row indexes of the operators
are hard-coded, making the test fragile across builds in different
environments.
This improves the test to iterate through the exec summary with a map of
operator names to their expected details. If a row matches the operator
name, verifies its details.
Testing
- Ran the test locally and on Ozone erasure-coding build where the test
failed.
Change-Id: I50f1236a2bb7a360e474db8fa42089303f734e79
Reviewed-on: http://gerrit.cloudera.org:8080/24320
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> test_cancelled_nodes_in_exec_summary fails on list index out of range
> ---------------------------------------------------------------------
>
> Key: IMPALA-15003
> URL: https://issues.apache.org/jira/browse/IMPALA-15003
> Project: IMPALA
> Issue Type: Bug
> Components: Test
> Reporter: Quanlong Huang
> Assignee: Quanlong Huang
> Priority: Critical
> Fix For: Impala 5.0.0
>
>
> test_cancelled_nodes_in_exec_summary fails on Ozone erasure-coding builds:
> *Error Message*
> IndexError: list index out of range
> *Stacktrace*
> {code:python}
> query_test/test_observability.py:223: in test_cancelled_nodes_in_exec_summary
> assert result.exec_summary[15]['operator'] == '00:' + scan_op,
> result.runtime_profile
> E IndexError: list index out of range
> query = '\n with l as (select * from tpch.lineitem UNION
> ALL select * from tpch.lineitem)\n select STRAIGHT_JOIN...e l_orderkey
> = 1) a\n join\n (select * from l LIMIT 125000) b\n on
> a.l_orderkey = -b.l_orderkey'
> result = <tests.common.impala_connection.ImpylaHS2ResultSet
> object at 0x7f1b465302d0>
> scan_op = 'SCAN OZONE'
> self = <test_observability.TestObservability object at
> 0x7f1b4707f410>{code}
> The query is
> {code:sql}
> with l as (select * from tpch.lineitem UNION ALL select * from
> tpch.lineitem)
> select STRAIGHT_JOIN count(*) from
> (select * from tpch.lineitem a where l_orderkey = 1) a
> join
> (select * from l LIMIT 125000) b
> on a.l_orderkey = -b.l_orderkey;{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]