Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 53be0f6

Browse files
committed
fix: get_results returns none if table is empty
previously we were returning a table that had a bunch of null columns this is actually due to us not having a strict schema on the worker side but a good fix here anyways is to return None from get_results when there's no data in the table
1 parent 84e63cd commit 53be0f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/test_results.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,7 @@ def get_results(
7070
# deserialize
7171
table = pl.read_ipc(result)
7272

73+
if table.height == 0:
74+
return None
75+
7376
return table

0 commit comments

Comments
 (0)