arnavarora2004 commented on code in PR #35696:
URL: https://github.com/apache/beam/pull/35696#discussion_r2240461596
##########
sdks/python/apache_beam/yaml/tests/bigtable.yaml:
##########
@@ -85,3 +85,52 @@ pipelines:
project: 'apache-beam-testing'
instance: "{BT_INSTANCE}"
table: 'test-table'
+ - pipeline:
+ type: chain
+ transforms:
+ - type: ReadFromBigTable
+ config:
+ project: 'apache-beam-testing'
+ instance: "{BT_INSTANCE}"
+ table: 'test-table'
+ flatten: True
+ - type: MapToFields
+ config:
+ language: python
+ fields:
+ key:
+ callable: |
+ def convert_to_bytes(row):
+ return row.key.decode("utf-8") if "key" in row._fields
else None
+ - type: AssertEqual
+ config:
+ elements:
+ - {'key': 'row1'}
+ - {'key': 'row1' }
Review Comment:
sounds good, now that I know this works I can do the other columns too,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]