-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
123 additions
and
3 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,51 @@ | ||
from rialto.jobs.decorators import job, datasource | ||
|
||
|
||
@datasource | ||
def a(): | ||
return 1 | ||
|
||
|
||
@datasource | ||
def b(a): | ||
return a + 1 | ||
|
||
|
||
@datasource | ||
def c(a, b): | ||
return a + b | ||
|
||
|
||
@job | ||
def ok_dependency_job(c): | ||
return c + 1 | ||
|
||
|
||
@datasource | ||
def d(a, circle_1): | ||
return circle_1 + a | ||
|
||
|
||
@datasource | ||
def circle_1(circle_2): | ||
return circle_2 + 1 | ||
|
||
|
||
@datasource | ||
def circle_2(circle_1): | ||
return circle_1 + 1 | ||
|
||
|
||
@job | ||
def circular_dependency_job(d): | ||
return d + 1 | ||
|
||
|
||
@job | ||
def missing_dependency_job(a, x): | ||
return x + a | ||
|
||
|
||
@job | ||
def default_dependency_job(run_date, spark, config, dependencies, table_reader, feature_loader): | ||
return 1 |
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