Am I allowed to use `overrides` on the `raw_df.raw...
# hamilton-help
s
Am I allowed to use
overrides
on the
raw_df.raw
node? I am currently coming across an issue where the
step(_prepare)
is failing because it is depending on the mapping done in
raw_df
. Since I am using
pipe_output
I am thinking that the body of
raw_df
should have been executed (and executed before) since
raw_df.raw
is one step above.
Copy code
@pipe_output(
    step(_prepare_data)
)
def raw_df(path: Path) -> pd.DataFrame:
    # some mapping
    ...
    

def prep_df(raw_prev_643: pd.DataFrame) -> pd.DataFrame:
    ...


results: dict = dr.execute(["prep_df"], inputs={}, overrides={
    "path": "path/to/file",
    "raw_df.raw": raw_df, # loaded outside of dag
    }
)
Slack Conversation
s
@Seth Stokes sorry missed this. What are you trying to solve in using the override here?
You should be able to unit test the functions independently to validate what you think should be happening