python-pinot-dbapi / pinot-dbapi

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

expose more cursor.stats #88

Open walterddr opened 6 months ago

walterddr commented 6 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 2 weeks ago

Hi @walterddr I can pick this up.