Skip to content

Commit

Permalink
Absorb renaming of AnVIL tables (#4617)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc authored and achave11-ucsc committed Dec 7, 2022
1 parent b695430 commit e10ffca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/azul/plugins/repository/tdr_anvil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ def _bundle_entity(self, bundle_fqid: SourcedBundleFQID) -> KeyReference:
bundle_uuid, bundle_entity.key, entity_type)
return bundle_entity

def _full_table_name(self, source: TDRSourceSpec, table_name: str) -> str:
if not table_name.startswith('INFORMATION_SCHEMA'):
table_name = 'anvil_' + table_name
return super()._full_table_name(source, table_name)

def _consolidate_by_type(self, entities: Keys) -> MutableKeysByType:
result = {entity_type: set() for entity_type in self.indexed_columns_by_entity_type}
for e in entities:
Expand Down

0 comments on commit e10ffca

Please sign in to comment.