Skip to content

Commit 601323b

Browse files
bug fix
1 parent 19c8ba7 commit 601323b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/dremioai/api/dremio/sql.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ async def get_results(
202202
)
203203
raise RuntimeError(f"Job {qs.id} failed: {emsg}")
204204

205-
limit = 500
205+
if job.row_count == 0:
206+
return pd.DataFrame() if use_df else JobResultsWrapper([])
207+
208+
limit = min(500, job.row_count)
206209

207210
results = await run_in_parallel(
208211
[

0 commit comments

Comments
 (0)