Skip to content

Commit cef7539

Browse files
rrminawjsi
andauthored
Update readers.py in cases where the next record contains Empty list instead of None (#275)
* Update readers.py * Update readers.py * Update readers.py --------- Co-authored-by: Wenjun Si <[email protected]>
1 parent ecec421 commit cef7539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odps/readers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def __next__(self):
358358
self._load_columns()
359359

360360
values = self._readline()
361-
if values is None:
361+
if values is None or len(values) == 0:
362362
raise StopIteration
363363

364364
if self._filtered_col_idxes:

0 commit comments

Comments
 (0)