Skip to content

Commit

Permalink
Add Filter and MapToFields transforms for BigQuery to Kafka example
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar3tto committed Apr 4, 2024
1 parent 6fccfe6 commit 46ff9a2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Python/yaml/bigquery_to_kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ pipeline:
config:
table: project-id.dataset-id.table-id

transforms:
- type: Filter
config:
language: python
keep: "id > 2"
- type: MapToFields
config:
language: python
fields:
id:
callable: "lambda row: row.id"
name:
callable: "lambda row: row.name.upper()"

sink:
type: WriteToKafka
config:
Expand Down

0 comments on commit 46ff9a2

Please sign in to comment.