Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sdks/python/apache_beam/yaml/standard_io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,11 @@
catalog_properties: 'catalog_properties'
config_properties: 'config_properties'
triggering_frequency_seconds: 'triggering_frequency_seconds'
manifest_file_size: 'manifest_file_size'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

When adding new parameters to the mappings of an underlying provider, they must also be defined in the properties schema of the transform (typically located above the underlying_provider section in this file). If they are omitted from the schema, YAML validation will fail when these parameters are used in pipelines (such as in the test file). Add manifest_file_size (as an integer) and sort_fields (as an array of strings) to the transform's properties schema if they are not already present.

location_prefix: 'location_prefix'
partition_fields: 'partition_fields'
table_properties: 'table_properties'
sort_fields: 'sort_fields'
error_handling: 'error_handling'
underlying_provider:
type: beamJar
Expand Down
3 changes: 3 additions & 0 deletions sdks/python/apache_beam/yaml/tests/iceberg_add_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ pipelines:
catalog_properties:
type: "hadoop"
warehouse: "{TEMP_DIR}/dir"
manifest_file_size: 50
sort_fields:
- "rank desc"

# Pipeline 3: Read from Iceberg and verify the contents
- pipeline:
Expand Down
Loading