Skip to content

Commit 8b0ab79

Browse files
committed
use num_rows for len
1 parent 081e75b commit 8b0ab79

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"makefile.configureOnOpen": false
3+
}

pyiceberg/io/pyarrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ def _task_to_record_batches(
13601360
# Apply the user filter
13611361
if pyarrow_filter is not None:
13621362
filtered_batch = batch.filter(pyarrow_filter)
1363-
if len(filtered_batch) == 0:
1363+
if filtered_batch.num_rows == 0:
13641364
continue
13651365
output_batches = filtered_batch
13661366
for output_batch in output_batches:

spark-3.5.3-bin-hadoop3.tgz

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2+
<html><head>
3+
<title>404 Not Found</title>
4+
</head><body>
5+
<h1>Not Found</h1>
6+
<p>The requested URL was not found on this server.</p>
7+
</body></html>

0 commit comments

Comments
 (0)