Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenac95 committed Dec 21, 2024
1 parent dc24618 commit c8c43c5
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions warehouse/metrics_tools/factory/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,26 +376,8 @@ def generate_rolling_python_model_for_rendered_query(
"metrics_sample_date",
]

# return GeneratedPythonModel.create(
# name=f"{self.catalog}.{query_config['table_name']}",
# func=generated_rolling_query_proxy,
# entrypoint_path=calling_file,
# additional_macros=self.generated_model_additional_macros,
# variables=self.serializable_config(query_config),
# depends_on=depends_on,
# columns=columns,
# kind={
# "name": ModelKindName.INCREMENTAL_BY_TIME_RANGE,
# "time_column": "metrics_sample_date",
# **kind_common,
# },
# partitioned_by=partitioned_by,
# cron=cron,
# start=self._raw_options["start"],
# grain=grain,
# imports={"pd": pd, "generated_rolling_query": generated_rolling_query},
# enabled=self._raw_options.get("enabled", True),
# )
# Override the path and module so that sqlmesh generates the
# proper python_env for the model
override_path = Path(inspect.getfile(generated_rolling_query_proxy))
override_module_path = Path(
os.path.dirname(inspect.getfile(generated_rolling_query_proxy))
Expand Down

0 comments on commit c8c43c5

Please sign in to comment.