prestodb / presto-python-client

Python DB-API client for Presto
Apache License 2.0
239 stars 87 forks source link

Add support for Presto warnings #72

Open ggreg opened 5 years ago

ggreg commented 5 years ago

Since version 0.209, Presto may return a list of warnings in the warnings field of the JSON struct returned by then coordinator when the client polls the status of a query.

The warning are useful to surface issues in queries at runtime.

warnings would be exposed as an attribute of the client.PrestoQuery class and then through prestodb.dbapi.Cursor.warnings.