From dda5ce3b1d38c7ef80442a93b73fe83383cf515f Mon Sep 17 00:00:00 2001 From: Devon Fulcher Date: Wed, 20 Sep 2023 09:46:07 -0500 Subject: [PATCH] moved query interface and query parameters into protocols folder --- metricflow/engine/metricflow_engine.py | 2 +- metricflow/{specs => protocols}/query_interface.py | 0 metricflow/{specs => protocols}/query_parameter.py | 0 metricflow/query/query_parser.py | 2 +- metricflow/specs/where_filter_dimension.py | 2 +- metricflow/specs/where_filter_entity.py | 2 +- metricflow/specs/where_filter_time_dimension.py | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) rename metricflow/{specs => protocols}/query_interface.py (100%) rename metricflow/{specs => protocols}/query_parameter.py (100%) diff --git a/metricflow/engine/metricflow_engine.py b/metricflow/engine/metricflow_engine.py index a83c1e3feb..b2b9a757d4 100644 --- a/metricflow/engine/metricflow_engine.py +++ b/metricflow/engine/metricflow_engine.py @@ -52,7 +52,7 @@ from metricflow.query.query_parser import MetricFlowQueryParser from metricflow.random_id import random_id from metricflow.specs.column_assoc import ColumnAssociationResolver -from metricflow.specs.query_parameter import QueryParameterDimension, QueryParameterMetric +from metricflow.protocols.query_parameter import QueryParameterDimension, QueryParameterMetric from metricflow.specs.specs import InstanceSpecSet, MetricFlowQuerySpec from metricflow.sql.optimizer.optimization_levels import SqlQueryOptimizationLevel from metricflow.telemetry.models import TelemetryLevel diff --git a/metricflow/specs/query_interface.py b/metricflow/protocols/query_interface.py similarity index 100% rename from metricflow/specs/query_interface.py rename to metricflow/protocols/query_interface.py diff --git a/metricflow/specs/query_parameter.py b/metricflow/protocols/query_parameter.py similarity index 100% rename from metricflow/specs/query_parameter.py rename to metricflow/protocols/query_parameter.py diff --git a/metricflow/query/query_parser.py b/metricflow/query/query_parser.py index 18cd8e9dea..397605fe6c 100644 --- a/metricflow/query/query_parser.py +++ b/metricflow/query/query_parser.py @@ -30,7 +30,7 @@ from metricflow.naming.linkable_spec_name import StructuredLinkableSpecName from metricflow.query.query_exceptions import InvalidQueryException from metricflow.specs.column_assoc import ColumnAssociationResolver -from metricflow.specs.query_parameter import QueryParameterDimension, QueryParameterMetric +from metricflow.protocols.query_parameter import QueryParameterDimension, QueryParameterMetric from metricflow.specs.specs import ( DimensionSpec, EntitySpec, diff --git a/metricflow/specs/where_filter_dimension.py b/metricflow/specs/where_filter_dimension.py index 14404ea7e1..4184bc98eb 100644 --- a/metricflow/specs/where_filter_dimension.py +++ b/metricflow/specs/where_filter_dimension.py @@ -16,7 +16,7 @@ from metricflow.errors.errors import InvalidQuerySyntax from metricflow.specs.column_assoc import ColumnAssociationResolver -from metricflow.specs.query_interface import ( +from metricflow.protocols.query_interface import ( QueryInterfaceDimension, QueryInterfaceDimensionFactory, ) diff --git a/metricflow/specs/where_filter_entity.py b/metricflow/specs/where_filter_entity.py index f935384493..7d7493c263 100644 --- a/metricflow/specs/where_filter_entity.py +++ b/metricflow/specs/where_filter_entity.py @@ -13,7 +13,7 @@ from metricflow.errors.errors import InvalidQuerySyntax from metricflow.specs.column_assoc import ColumnAssociationResolver -from metricflow.specs.query_interface import QueryInterfaceEntity, QueryInterfaceEntityFactory +from metricflow.protocols.query_interface import QueryInterfaceEntity, QueryInterfaceEntityFactory from metricflow.specs.specs import EntitySpec diff --git a/metricflow/specs/where_filter_time_dimension.py b/metricflow/specs/where_filter_time_dimension.py index 7436dddcb1..c6bb64a466 100644 --- a/metricflow/specs/where_filter_time_dimension.py +++ b/metricflow/specs/where_filter_time_dimension.py @@ -11,7 +11,7 @@ from metricflow.errors.errors import InvalidQuerySyntax from metricflow.specs.column_assoc import ColumnAssociationResolver -from metricflow.specs.query_interface import QueryInterfaceTimeDimension, QueryInterfaceTimeDimensionFactory +from metricflow.protocols.query_interface import QueryInterfaceTimeDimension, QueryInterfaceTimeDimensionFactory from metricflow.specs.specs import TimeDimensionSpec