Skip to content

Commit

Permalink
Update input_data only if new_columns is not empty in executor (#226
Browse files Browse the repository at this point in the history
)
  • Loading branch information
oliverholworthy committed Feb 22, 2023
1 parent e3d892e commit f5cd9a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions merlin/dag/executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ def _build_input_data(self, node, transformable, capture_dtypes=False, validate_
seen_columns = set(parent_output_cols)
else:
new_columns = set(parent_output_cols) - seen_columns
input_data = concat_columns([input_data, parent_data[list(new_columns)]])
seen_columns.update(new_columns)
if new_columns:
input_data = concat_columns([input_data, parent_data[list(new_columns)]])
seen_columns.update(new_columns)

# Check for additional input columns that aren't generated by parents
# and fetch them from the root DataFrame or DictArray
Expand Down

0 comments on commit f5cd9a7

Please sign in to comment.