We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d704422 commit 71a5cedCopy full SHA for 71a5ced
sdks/python/apache_beam/metrics/cells.py
@@ -822,7 +822,9 @@ def from_proto(proto: metrics_pb2.BoundedTrie) -> 'BoundedTrieData':
822
return BoundedTrieData(
823
bound=proto.bound,
824
singleton=tuple(proto.singleton) if proto.singleton else None,
825
- root=_BoundedTrieNode.from_proto(proto.root) if proto.root else None)
+ root=(
826
+ _BoundedTrieNode.from_proto(proto.root)
827
+ if proto.HasField('root') else None))
828
829
def as_trie(self):
830
if self._root is not None:
0 commit comments