Skip to content

Commit

Permalink
Add raw query response to cursor class
Browse files Browse the repository at this point in the history
  • Loading branch information
piby180 committed Jul 4, 2024
1 parent 556da24 commit bc2d6e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pinotdb/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ def __init__(
self.schema = None
self.rowcount = -1
self._results = None
self.raw_query_response = None
self.timeUsedMs = -1
self._debug = debug
self._preserve_types = preserve_types
Expand Down Expand Up @@ -395,6 +396,7 @@ def finalize_query_payload(
def normalize_query_response(self, input_query, query_response):
try:
payload = query_response.json()
self.raw_query_response = payload
except Exception as e:
raise exceptions.DatabaseError(
f"Error when querying {input_query} from {self.url}, "
Expand Down

0 comments on commit bc2d6e6

Please sign in to comment.