python-pinot-dbapi / pinot-dbapi

Python DB-API and SQLAlchemy dialect for Pinot
MIT License
20 stars 33 forks source link

expose more cursor.stats #88

Closed walterddr closed 3 days ago

walterddr commented 10 months ago

follow up discussion from https://github.com/python-pinot-dbapi/pinot-dbapi/pull/87

in Apache Pinot query response consist of many statistics useful for debugging and tracing the performance of a query. (see: https://docs.pinot.apache.org/users/api/querying-pinot-using-standard-sql/response-format)

in #87 we added the total execution time but we want to also expose more similar to how the REST API is returning. Propose to have a stats field in cursor which contains a dict() that shows the k-v stats listed in the documentation

piby180 commented 4 months ago

Hi @walterddr I can pick this up.