jrmccluskey commented on code in PR #41698:
URL: https://github.com/apache/beam/pull/41698#discussion_r4756716781
##########
sdks/python/apache_beam/transforms/enrichment_handlers/bigtable.py:
##########
@@ -165,4 +189,5 @@ def get_cache_key(self, request: beam.Row) -> str:
a request made to `Bigtable`."""
if self._row_key_fn:
return "row_key: %s" % str(self._row_key_fn(request))
- return "%s: %s" % (self._row_key, request._asdict()[self._row_key])
+ # Use %r so None and the literal string "None" do not collide.
Review Comment:
This (and other comments) are somewhat overly verbose. Consider removing /
reducing comments that aren't particularly helpful outside of the context of
this PR.
--
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]