Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inflight monitoring #271

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b813ca1
first draft
danielkberry Jul 22, 2024
9f5ba39
added main ping annotation type
danielkberry Jul 22, 2024
1bd13c0
added render function
danielkberry Jul 22, 2024
7436062
make inflight metric its own class
danielkberry Jul 22, 2024
6173de0
override experiment annotation types
danielkberry Jul 22, 2024
bfdce46
properties dont need parentheses
danielkberry Jul 22, 2024
f99ed4c
fix join call
danielkberry Jul 22, 2024
ab7a5ce
try fix eta
danielkberry Jul 22, 2024
6fac882
try fix eta
danielkberry Jul 22, 2024
9c1bdcf
rename CTE
danielkberry Jul 22, 2024
0995277
rename CTE
danielkberry Jul 22, 2024
2c12ffa
make min args list
danielkberry Jul 22, 2024
3ad1b7f
min -> least
danielkberry Jul 22, 2024
2ec0edb
drop dedents
danielkberry Jul 22, 2024
58c1af3
clean sql
danielkberry Jul 22, 2024
8ee7792
clean sql
danielkberry Jul 22, 2024
8b4293b
clean sql
danielkberry Jul 22, 2024
72b12a4
fixed experiments column expr property
danielkberry Jul 22, 2024
e1d1b14
clean sql
danielkberry Jul 22, 2024
2f48b72
clean sql
danielkberry Jul 22, 2024
37a15e4
clean sql
danielkberry Jul 22, 2024
bd018de
clean sql
danielkberry Jul 22, 2024
fe04fbd
clean sql
danielkberry Jul 22, 2024
80e006e
clean sql
danielkberry Jul 22, 2024
50171ca
clean sql
danielkberry Jul 22, 2024
83b2d3e
clean sql
danielkberry Jul 22, 2024
2935ecf
switch to expecting a metric-config-parser Experiment object
danielkberry Jul 22, 2024
28f0596
refactored into statistic object
danielkberry Jul 23, 2024
4ebe516
move to attrs
danielkberry Jul 23, 2024
7bc77f3
move to attrs
danielkberry Jul 23, 2024
4734ab6
overwrite existing views
danielkberry Jul 23, 2024
0ae459b
forgot bq file
danielkberry Jul 23, 2024
aa760a9
updates
danielkberry Jul 23, 2024
82f234a
updates
danielkberry Jul 23, 2024
bf8fd06
updated with ability to construct from mcp types
danielkberry Jul 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/mozanalysis/bq.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,11 @@ def run_query(self, sql, results_table=None, replace_tables=False):
def fully_qualify_table_name(self, table_name):
"""Given a table name, return it fully qualified."""
return f"{self.project_id}.{self.dataset_id}.{table_name}"

def create_view(self, view_name: str, sql: str, replace_view=False) -> None:
view_id = self.fully_qualify_table_name(view_name)
view = bigquery.Table(view_id)
if replace_view:
self.client.delete_table(view, not_found_ok=True)
view.view_query = sql
self.client.create_table(view)
Loading