Repository navigation
Support InputPath artifact values in @task(unwrap=...) (v0.1.33) - #78
Merged
Merged
Conversation
`dict[str, components.InputPath(T)]` unwrap targets now expand into one `inputPath` component input per call-site key. The generated runtime wrapper re-assembles the dict with each key's local artifact path, so a single inline task can consume an arbitrary number of upstream artifacts (e.g. merging N Parquet tables). The artifact kind is persisted in `local_from_python.unwrapped_inputs` (`kind` per key, `value_kind` per parameter) so hydrate regenerates the identical interface. Value unwraps omit both fields, keeping their persisted schema and fragment hash byte-identical. `OutputPath` dict values are now rejected instead of silently becoming String inputs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
@task(unwrap=...)now accepts artifact values. A parameter annotateddict[str, components.InputPath(T)]expands into oneinputPathcomponent input per call-site key (<param>__<key>, typeT). The generated runtime wrapper re-assembles the dict with each key's local artifact path, so one inline task can consume an arbitrary number of upstream artifacts:Schema / compatibility
"kind": "input_path"on each key and"value_kind": "input_path"on the parameter inlocal_from_python.unwrapped_inputs, so hydrate regenerates the identicalinputPathinterface from the sidecar alone.kindare value inputs.str(the path), regardless ofT.OutputPathdict values are now rejected with a clear error (previously they silently becameStringvalue inputs).dict[...];typing.Dictrejects non-type arguments such asInputPath(...).Tests
Dict[str, dict]JSON-object case) and for artifact unwraps.InputPath(),OutputPathrejection, unknown persisted kind rejection.inputPathplaceholders.Version bumped to 0.1.33. README documents the new form.