Skip to content

Commit

Permalink
fix selected_cols
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankongdeguiji committed Oct 28, 2024
1 parent 20ea88d commit 39c2f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tzrec/datasets/odps_dataset_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(
self._ordered_cols = []
for field in reader.get_schema():
# pyre-ignore [58]
if not selected_cols and field["colname"] in selected_cols:
if not selected_cols or field["colname"] in selected_cols:
self.schema.append(field)
self._ordered_cols.append(field["colname"])
reader.close()
Expand Down

0 comments on commit 39c2f77

Please sign in to comment.