Skip to content

Commit

Permalink
Experiment config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Nov 29, 2023
1 parent 7ccdc00 commit 652209d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def main():
new_placement = {}
for table in blueprint.tables():
new_placement[table.name] = [Engine.Aurora, Engine.Athena]
if table.name == "telemetry":
new_placement[table.name] = [Engine.Athena]
enum_blueprint.set_table_locations(new_placement)

# 6. Transition to the new blueprint.
Expand Down
4 changes: 2 additions & 2 deletions src/brad/utils/table_sizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def table_size_rows(
cursor = conn.cursor_sync()
await cursor.execute(query)
row = cursor.fetchone_sync()
assert row is not None
assert row is not None, table_name
result = int(row[0])
if result < 0:
logger.warning(
Expand All @@ -80,7 +80,7 @@ async def table_size_rows(
cursor = conn.cursor_sync()
await cursor.execute(query)
row = cursor.fetchone_sync()
assert row is not None
assert row is not None, table_name
result = int(row[0])
return result

Expand Down

0 comments on commit 652209d

Please sign in to comment.