Skip to content

Commit

Permalink
Merge pull request #227 from censoredplanet/bump
Browse files Browse the repository at this point in the history
upgrade beam to 2.46
  • Loading branch information
ohnorobo authored Mar 24, 2023
2 parents 12b5fea + d530308 commit fc6c2a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pipeline/metadata/beam_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from typing import Tuple, Dict, List, Iterator, Union, Iterable

import apache_beam as beam

from pipeline.metadata.schema import BigqueryRow, SatelliteRow, PageFetchRow, IpMetadataWithDateKey, IpMetadataWithSourceKey, SatelliteAnswer, SatelliteAnswerWithSourceKey, SatelliteAnswerWithAnyKey, merge_ip_metadata, merge_satellite_answers
from pipeline.metadata.metrics import ROWS_WITH_METADATA_COUNTER

Expand Down Expand Up @@ -56,6 +58,9 @@ def make_source_domain_key(row: SatelliteRow) -> SourceDomainKey:
return (row.source or '', row.domain or '')


# We had to remove the beam type hint here
# So subsequent operations can take either HyperquackRow or SatelliteRow
@beam.typehints.no_annotations
def merge_metadata_with_rows( # pylint: disable=unused-argument
key: DateIpKey,
value: Dict[str,
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apache-beam==2.38.0
apache-beam[gcp]==2.38.0
apache-beam==2.46.0
apache-beam[gcp]==2.46.0
# Maxmind
geoip2==4.1.0
# Imports GCS client needed for beam
Expand Down

0 comments on commit fc6c2a0

Please sign in to comment.