Skip to content

Commit

Permalink
fixup! [r] Index orphaned replicas (#6626)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc committed Nov 8, 2024
1 parent 4758f4a commit 043298e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/azul/plugins/repository/tdr_anvil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ def repeat(fmt):

target_size = 256
prefix_len = len(prefix)
table_names = sorted(filter(BundleType.is_batched, self.tdr.list_tables(source)))
table_names = self.tdr.list_tables(source)
# This table is present in all snapshots. It is large and contains no
# useful metadata, so we skip indexing replicas from it.
table_names.pop('datarepo_row_ids')
tables_names = sorted(filter(BundleType.is_batched, table_names))

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable tables_names is not used.
log.info('Calculating batch prefix lengths for partition %r of %d tables '
'in source %s', prefix, len(table_names), source)
# The extraneous outer 'SELECT *' works around a bug in BigQuery emulator
Expand Down

0 comments on commit 043298e

Please sign in to comment.