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

Riza Suminto resolved IMPALA-14669.
-----------------------------------
    Fix Version/s: Impala 5.0.0
       Resolution: Fixed

> False-positive in test_ext_data_sources.py
> ------------------------------------------
>
>                 Key: IMPALA-14669
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14669
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: Impala 5.0.0
>            Reporter: Riza Suminto
>            Assignee: Riza Suminto
>            Priority: Major
>             Fix For: Impala 5.0.0
>
>
> test_ext_data_sources.py has several negative tests that use pytest.raise + 
> match such as
> test_invalid_postgres_jdbc_table, test_invalid_postgres_hive_jdbc_table, and 
> test_invalid_mysql_hive_jdbc_table_properties. This pytest.raise + match does 
> not work in pytest-2.9.2, and silently pass without actually matching the 
> expected error message.
>  
> On pytest-6.2.5, these tests fail for not finding the match in thrown 
> exception. The tests are only throwing exception because the CREATE QUERY 
> sent to Hive instead of Impala, and Hive exception message is not validated. 
> The test should be modified to create malformed JDBC table thorugh Hive, and 
> verify that querying such table from Impala will throw correct exception 
> message.



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

Reply via email to