You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Riza Suminto (Jira)" <ji...@apache.org> on 2026/01/09 06:22:00 UTC
[jira] [Created] (IMPALA-14669) False-positive in test_ext_data_sources.py
Riza Suminto created IMPALA-14669:
-------------------------------------
Summary: 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
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)