-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENV-428] Prevent refactored steps being basis for new micro-batches …
…(#298)
- Loading branch information
Jeremy Beard
authored and
Ian Buss
committed
Apr 30, 2019
1 parent
5587388
commit 2832c35
Showing
7 changed files
with
89 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
application { | ||
batch.milliseconds = 1000 | ||
} | ||
|
||
steps { | ||
stream { | ||
input { | ||
type = "com.cloudera.labs.envelope.configuration.TestConfigLoader$DummyStreamInput" | ||
translator { | ||
type = "com.cloudera.labs.envelope.configuration.TestConfigLoader$DummyTranslator" | ||
} | ||
} | ||
} | ||
|
||
loop { | ||
dependencies = [stream] | ||
type = loop | ||
mode = serial | ||
source = range | ||
range { | ||
start = 1 | ||
end = 2 | ||
} | ||
parameter = not_used | ||
} | ||
|
||
iteration { | ||
dependencies = [loop] | ||
deriver { | ||
type = "com.cloudera.labs.envelope.run.TestRunner$TestingSQLDeriver" | ||
query.literal = "SELECT 1" | ||
} | ||
} | ||
|
||
// Runs after the loop is finished | ||
check_refactored { | ||
dependencies = [iteration] | ||
type = task | ||
task { | ||
type = "com.cloudera.labs.envelope.run.TestRunner$CheckRefactoredStepsContainedTask" | ||
} | ||
} | ||
} |