From e3cb633d04aa8cdf4982026a2f26d37fa5f76b56 Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Tue, 12 Nov 2024 12:57:35 -0500 Subject: [PATCH] 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 --- utils/test_results.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/test_results.py b/utils/test_results.py index 4dbdb6cf2c..e8ac8239bb 100644 --- a/utils/test_results.py +++ b/utils/test_results.py @@ -70,4 +70,7 @@ def get_results( # deserialize table = pl.read_ipc(result) + if table.height == 0: + return None + return table