cloudera / impyla

Python DB API 2.0 client for Impala and Hive (HiveServer2 protocol)
Apache License 2.0
731 stars 248 forks source link

IMPALA-12149: Adds additional checks to ensure valid connection arguments #515

Closed jasonmfehr closed 1 year ago

jasonmfehr commented 1 year ago

IMPALA-12149: Adds additional checks to ensure connection arguments that are applicable to username/password auth and JWT auth are not mixed together on the same call to the connect method.

These additional checks prevent confusion about which authentication method is actually used for the connection.

New tests were added to cover the new checks.

jasonmfehr commented 1 year ago

Ran the params_neg tests in impala/tests/test_dbapi_connect.py on Python 2.7 and 3.8. Tests passed on both versions of Python.