Skip to content

Commit

Permalink
Beam YAML day zero notebook save file fix (#31266)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber authored May 14, 2024
1 parent bcac88b commit c793700
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions examples/notebooks/get-started/try-apache-beam-yaml.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
},
"outputs": [],
"source": [
"pipeline = '''\n",
"%%writefile 'pipelines/pipeline-map-01.yaml'\n",
"pipeline:\n",
" type: chain\n",
" transforms:\n",
Expand All @@ -389,12 +389,20 @@
" append: true\n",
" fields:\n",
" is_adult: \"age >= 18\"\n",
" - type: LogForTesting\n",
"'''\n",
"save_to_file(pipeline, 'pipelines/pipeline-map-01.yaml')\n",
"! python -m apache_beam.yaml.main --pipeline_spec_file=pipelines/pipeline-map-01.yaml"
" - type: LogForTesting\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"! python -m apache_beam.yaml.main --pipeline_spec_file=pipelines/pipeline-map-01.yaml"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit c793700

Please sign in to comment.