|
4 | 4 | from ai.chronon.api.common.ttypes import TableDependency
|
5 | 5 | from ai.chronon.api.ttypes import GroupBy, Join, Model, StagingQuery
|
6 | 6 | from ai.chronon.cli.compile.compile_context import CompiledObj
|
| 7 | +from ai.chronon.orchestration.ttypes import PhysicalNode |
7 | 8 |
|
8 | 9 |
|
9 |
| -@dataclass |
10 |
| -class PhysicalNode: |
11 |
| - name: str |
12 |
| - node_type: str # NodeType |
13 |
| - conf: CompiledObj |
14 |
| - conf_hash: str |
15 |
| - table_dependencies: List[TableDependency] |
16 |
| - output_columns: List[str] |
17 |
| - output_table: str |
| 10 | +def from_group_by(cls, group_by: GroupBy) -> List[PhysicalNode]: |
| 11 | + raise NotImplementedError("Method not yet implemented") |
18 | 12 |
|
19 |
| - @classmethod |
20 |
| - def from_group_by(cls, group_by: GroupBy) -> List["PhysicalNode"]: |
21 |
| - raise NotImplementedError("Method not yet implemented") |
22 | 13 |
|
23 |
| - @classmethod |
24 |
| - def from_join(cls, join: Join) -> List["PhysicalNode"]: |
25 |
| - raise NotImplementedError("Method not yet implemented") |
| 14 | +def from_join(cls, join: Join) -> List[PhysicalNode]: |
| 15 | + raise NotImplementedError("Method not yet implemented") |
26 | 16 |
|
27 |
| - @classmethod |
28 |
| - def from_staging_query(cls, staging_query: StagingQuery) -> List["PhysicalNode"]: |
29 |
| - raise NotImplementedError("Method not yet implemented") |
30 | 17 |
|
31 |
| - @classmethod |
32 |
| - def from_model(cls, model: Model) -> List["PhysicalNode"]: |
33 |
| - raise NotImplementedError("Method not yet implemented") |
| 18 | +def from_staging_query(cls, staging_query: StagingQuery) -> List[PhysicalNode]: |
| 19 | + raise NotImplementedError("Method not yet implemented") |
| 20 | + |
| 21 | + |
| 22 | +def from_model(cls, model: Model) -> List[PhysicalNode]: |
| 23 | + raise NotImplementedError("Method not yet implemented") |
0 commit comments