Skip to content
Closed
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
8 changes: 7 additions & 1 deletion sdks/python/apache_beam/yaml/yaml_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,12 @@ def attributes_extractor(row):
field for field in input_schema.fields
if field.name not in extra_fields
])

if timestamp_attribute:
for i, field in enumerate(payload_schema.fields):
field.encoding_position = i
payload_schema.encoding_positions_set = True

formatter = _create_formatter(format, schema, payload_schema)
return (
pcoll | beam.Map(
Expand Down Expand Up @@ -600,7 +606,7 @@ def read_from_tfrecord(
compression_type (CompressionTypes): Used to handle compressed input files.
Default value is CompressionTypes.AUTO, in which case the file_path's
extension will be used to detect the compression.
validate (bool): Boolean flag to verify that the files exist during the
validate (bool): Boolean flag to verify that the files exist during the
pipeline creation time.
"""
return ReadFromTFRecord(
Expand Down
Loading