Skip to content

Commit 0f96ea3

Browse files
committed
Empty table actually returns record batch of length one but there are no columns
1 parent 03092ed commit 0f96ea3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/tests/test_context.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,11 @@ def test_read_empty(ctx):
691691
result = df.collect()
692692
assert len(result) == 1
693693
assert result[0].num_columns == 0
694-
assert result[0].num_rows == 0
694+
695+
df = ctx.empty_table()
696+
result = df.collect()
697+
assert len(result) == 1
698+
assert result[0].num_columns == 0
695699

696700

697701
def test_register_arrow(ctx, tmp_path):

0 commit comments

Comments
 (0)