Skip to content

Commit

Permalink
fix: update kind, start and macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabolol committed Dec 11, 2024
1 parent c92b438 commit f871baa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions warehouse/metrics_tools/factory/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def generate_model_for_rendered_query(
self.generate_time_aggregation_model_for_rendered_query(
calling_file, query_config, dependencies
)
case "overall":
case "over_all_time":
self.generate_point_in_time_model_for_rendered_query(
calling_file, query_config, dependencies
)
Expand Down Expand Up @@ -574,14 +574,12 @@ def generate_point_in_time_model_for_rendered_query(
entrypoint_path=calling_file,
config=config,
name=f"{self.catalog}.{query_config['table_name']}",
kind=ModelKindName.VIEW,
kind=ModelKindName.FULL,
dialect="clickhouse",
columns=columns,
grain=grain,
start=self._raw_options["start"],
# since this query's over the full time range, we don't expose access to the
# macros used to get information about the specific time
additional_macros=[],
start="1970-01-01",
additional_macros=self.generated_model_additional_macros,
)

def serializable_config(self, query_config: MetricQueryConfig):
Expand Down

0 comments on commit f871baa

Please sign in to comment.