dropbox / dropbox/PyHive

Hive and Presto `connect()` work differently; not DBAPI compliant

Open
#333 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
545
PR merge metrics
No merged PRs in 30d

Description

Presto
When I run the `connect()` method with wrong credentials, no error is raised until a query is executed and it then raises an `sqlalchemy.exc.OperationalError` (this part is Ok).

Hive
When I run the `connect()` method with wrong credentials, a `thrift.transport.TTransport.TTransportException` is raised. Shouldn't it be an `sqlalchemy.exc.OperationalError` ?

Doubts:
- Shouldn't Presto raise the OperationalError as soon as the connect method is launched?
- Shouldn't Hive raise an OperationalError when connection fails?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.