Skip to content

Commit 21ac0b6

Browse files
committed
fix decode_content
1 parent 78752d4 commit 21ac0b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libs/foundry-dev-tools/src/foundry_dev_tools/clients/foundry_sql_server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ def _extract_tickets(self, response_json: dict[str, Any]) -> list[str]:
452452
"""
453453
if response_json.get("type") != "success":
454454
msg = f"Expected success response, got: {response_json.get('type')}"
455+
455456
raise ValueError(msg)
456457

457458
chunks = response_json["success"]["result"]["interactive"]["chunks"]
@@ -470,6 +471,7 @@ def read_stream_results_arrow(self, tickets: list[str]) -> pa.ipc.RecordBatchStr
470471
from foundry_dev_tools._optional.pyarrow import pa
471472

472473
response = self._api_stream_ticket(tickets)
474+
response.raw.decode_content = True
473475

474476
return pa.ipc.RecordBatchStreamReader(response.raw)
475477

0 commit comments

Comments
 (0)