Skip to content

Commit

Permalink
Metrics fixes for metrics_v0 (#2188)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenac95 authored Sep 23, 2024
1 parent c68fc1a commit 2d3523b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions warehouse/metrics_mesh/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def pool_manager_factory(config: ClickhouseConnectionConfig):
os.environ.get("SQLMESH_CLICKHOUSE_CONCURRENT_TASKS", "16")
),
send_receive_timeout=1800,
connection_settings={"allow_nondeterministic_mutations": 1},
# connection_settings={"allow_nondeterministic_mutations": 1},
connection_pool_options={
"maxsize": 24,
"retries": 3,
"retries": 0,
},
),
state_connection=GCPPostgresConnectionConfig(
Expand Down
2 changes: 1 addition & 1 deletion warehouse/metrics_tools/lib/factories/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ class DailyTimeseriesRollingWindowOptions(t.TypedDict):
def join_all_of_entity_type(evaluator: MacroEvaluator, *, db: str, tables: t.List[str], columns: t.List[str]):
query = exp.select(*columns).from_(sqlglot.to_table(f"{db}.{tables[0]}"))
for table in tables[1:]:
query.union(exp.select(*columns).from_(sqlglot.to_table(f"{db}.{table}")), distinct=False)
query = query.union(exp.select(*columns).from_(sqlglot.to_table(f"{db}.{table}")), distinct=False)
return query


Expand Down

0 comments on commit 2d3523b

Please sign in to comment.