-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As discussed, we're going with a list of tuples, and not validating the types. That said, we have a set of types we allow and we can assume that any of those are supported, whereas the others are allowed but will not be fully supported. Note we also made the following decisions: 1. We implement the types as a single tag internally. This will change, so its not exposed to the user 2. We only allow this to decorate registered dataframe types
- Loading branch information
1 parent
c4babe4
commit e8f83d3
Showing
11 changed files
with
413 additions
and
259 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
======================= | ||
schema | ||
======================= | ||
|
||
`@schema` is a function modifier that allows you to specify a schema for the | ||
function's inputs/outputs. This can be used to validate data at runtime, visualize, etc... | ||
|
||
|
||
**Reference Documentation** | ||
|
||
.. autoclass:: hamilton.function_modifiers.schema | ||
:members: output |
421 changes: 182 additions & 239 deletions
421
examples/spark/pyspark_feature_catalog/example_usage.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.