aIbrahiim commented on code in PR #36874:
URL: https://github.com/apache/beam/pull/36874#discussion_r2560910425
##########
sdks/python/apache_beam/transforms/enrichment_handlers/bigquery.py:
##########
@@ -141,11 +141,13 @@ def __init__(
self.project = project
self.column_names = column_names
self.select_fields = ",".join(column_names) if column_names else '*'
- self.row_restriction_template = row_restriction_template
+ self.row_restriction_template = (
+ row_restriction_template.replace('{{}}', '{}'))
self.table_name = table_name
self.fields = fields if fields else []
self.condition_value_fn = condition_value_fn
self.query_fn = query_fn
+ self._has_placeholders = '{}' in self.row_restriction_template
Review Comment:
Okay I will remove the placeholder logic here and will make the handler will
try to match by key first, and if there are unmatched requests like hardcoded
templates it will pair them with the same result.
--
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]