Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
update sharded table suffix filter (amundsen-io#1980)
Browse files Browse the repository at this point in the history
Co-authored-by: Sahithi Velma <[email protected]>
  • Loading branch information
sahithi03 and Sahithi Velma authored Sep 10, 2022
1 parent 6bac23f commit 077dbb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def _create_records(self, refResources: List[dict], resourcesProcessed: int, ema
tableId = self._remove_table_decorators(tableId)

if self._is_sharded_table(tableId):
tableId = tableId[:-BigQueryTableUsageExtractor.DATE_LENGTH]
# Use the prefix of the sharded table as tableId
tableId = tableId[:-len(self._get_sharded_table_suffix(tableId))]

if refResource['projectId'] != self.project_id and self.count_reads_only_from_same_project:
LOGGER.debug(
Expand Down

0 comments on commit 077dbb0

Please sign in to comment.