Skip to content

Commit f7354e0

Browse files
committed
added chunk iterator to fetch table function
1 parent 5abf262 commit f7354e0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/webapp/databricks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ def fetch_table_data(
386386
if getattr(first_chunk, "data_array", None):
387387
rows.extend(first_chunk.data_array)
388388

389-
# Warn if server reports truncation (byte_limit/row_limit)
390389
if getattr(first_chunk, "truncated", False):
391390
LOGGER.warning(
392391
"Databricks marked the result as truncated by server limits."
@@ -413,8 +412,6 @@ def fetch_table_data(
413412
# Build list of dicts
414413
records: List[Dict[str, Any]] = [dict(zip(column_names, r)) for r in rows]
415414

416-
# Check serialized JSON size (as it would be sent by FastAPI / JSONResponse)
417-
# Use compact separators to mirror typical production responses (no extra spaces).
418415
try:
419416
encoded = json.dumps(
420417
records, ensure_ascii=False, separators=(",", ":")

0 commit comments

Comments
 (0)