Skip to content

Commit

Permalink
Move SqlDataSet class from plan_conversion to dataset package
Browse files Browse the repository at this point in the history
The other DataSet classes are all in one place, and this is no
longer strictly a plan_conversion artifact (indeed, it never
was, it just looked that way due to the generics).
  • Loading branch information
tlento committed Sep 7, 2023
1 parent 9049504 commit f20fadf
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion metricflow/dataflow/builder/node_data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from metricflow.dataflow.dataflow_plan import (
DataflowPlanNode,
)
from metricflow.dataset.sql_dataset import SqlDataSet
from metricflow.model.semantic_manifest_lookup import SemanticManifestLookup
from metricflow.plan_conversion.dataflow_to_sql import DataflowToSqlQueryPlanConverter
from metricflow.plan_conversion.sql_dataset import SqlDataSet
from metricflow.specs.column_assoc import ColumnAssociationResolver


Expand Down
2 changes: 1 addition & 1 deletion metricflow/dataflow/builder/node_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
PartitionTimeDimensionJoinDescription,
ValidityWindowJoinDescription,
)
from metricflow.dataset.sql_dataset import SqlDataSet
from metricflow.instances import InstanceSet
from metricflow.model.semantics.semantic_model_join_evaluator import SemanticModelJoinEvaluator
from metricflow.plan_conversion.instance_converters import CreateValidityWindowJoinDescription
from metricflow.plan_conversion.sql_dataset import SqlDataSet
from metricflow.protocols.semantics import SemanticModelAccessor
from metricflow.specs.specs import (
LinkableInstanceSpec,
Expand Down
2 changes: 1 addition & 1 deletion metricflow/dataflow/dataflow_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
PartitionTimeDimensionJoinDescription,
)
from metricflow.dataflow.sql_table import SqlTable
from metricflow.dataset.sql_dataset import SqlDataSet
from metricflow.filters.time_constraint import TimeRangeConstraint
from metricflow.plan_conversion.sql_dataset import SqlDataSet
from metricflow.specs.specs import (
InstanceSpecSet,
LinklessEntitySpec,
Expand Down
2 changes: 1 addition & 1 deletion metricflow/dataset/semantic_model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from dbt_semantic_interfaces.references import SemanticModelReference

from metricflow.dataset.sql_dataset import SqlDataSet
from metricflow.instances import InstanceSet
from metricflow.plan_conversion.sql_dataset import SqlDataSet
from metricflow.sql.sql_plan import SqlSelectStatementNode


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion metricflow/plan_conversion/dataflow_to_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
WriteToResultTableNode,
)
from metricflow.dataset.dataset import DataSet
from metricflow.dataset.sql_dataset import SqlDataSet
from metricflow.filters.time_constraint import TimeRangeConstraint
from metricflow.instances import (
InstanceSet,
Expand Down Expand Up @@ -62,7 +63,6 @@
CreateSelectCoalescedColumnsForLinkableSpecs,
SelectOnlyLinkableSpecs,
)
from metricflow.plan_conversion.sql_dataset import SqlDataSet
from metricflow.plan_conversion.sql_join_builder import (
AnnotatedSqlDataSet,
ColumnEqualityDescription,
Expand Down
2 changes: 1 addition & 1 deletion metricflow/plan_conversion/sql_join_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import List, Optional, Sequence, Tuple

from metricflow.dataflow.dataflow_plan import JoinDescription, JoinOverTimeRangeNode, JoinToTimeSpineNode
from metricflow.plan_conversion.sql_dataset import SqlDataSet
from metricflow.dataset.sql_dataset import SqlDataSet
from metricflow.plan_conversion.sql_expression_builders import make_coalesced_expr
from metricflow.sql.sql_exprs import (
SqlColumnReference,
Expand Down
2 changes: 1 addition & 1 deletion metricflow/test/dataflow/builder/test_node_data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
from metricflow.dataflow.builder.node_data_set import DataflowPlanNodeOutputDataSetResolver
from metricflow.dataflow.dataflow_plan import JoinDescription, JoinToBaseOutputNode, ReadSqlSourceNode
from metricflow.dataflow.sql_table import SqlTable
from metricflow.dataset.sql_dataset import SqlDataSet
from metricflow.instances import (
InstanceSet,
MeasureInstance,
)
from metricflow.model.semantic_manifest_lookup import SemanticManifestLookup
from metricflow.plan_conversion.column_resolver import DunderColumnAssociationResolver
from metricflow.plan_conversion.sql_dataset import SqlDataSet
from metricflow.plan_conversion.time_spine import TimeSpineSource
from metricflow.specs.column_assoc import ColumnAssociation, SingleColumnCorrelationKey
from metricflow.specs.specs import (
Expand Down

0 comments on commit f20fadf

Please sign in to comment.