-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add dedupe to Python DSL (#341)
Signed-off-by: Alex Collins <[email protected]>
- Loading branch information
Showing
6 changed files
with
68 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from argo_dataflow import pipeline, kafka | ||
|
||
if __name__ == '__main__': | ||
(pipeline("102-dedupe") | ||
.owner('argoproj-labs') | ||
.describe("""This is an example of built-in de-duplication step.""") | ||
.step( | ||
(kafka('input-topic') | ||
.dedupe('main') | ||
.kafka('output-topic')) | ||
) | ||
.save()) |
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,18 @@ | ||
apiVersion: dataflow.argoproj.io/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
annotations: | ||
dataflow.argoproj.io/description: This is an example of built-in de-duplication | ||
step. | ||
dataflow.argoproj.io/owner: argoproj-labs | ||
name: 102-dedupe | ||
spec: | ||
steps: | ||
- dedupe: {} | ||
name: main | ||
sinks: | ||
- kafka: | ||
topic: output-topic | ||
sources: | ||
- kafka: | ||
topic: input-topic |
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