Skip to content

Commit ce336f1

Browse files
committed
WIP
1 parent 74b0c5f commit ce336f1

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

api/py/ai/chronon/cli/plan/physical_node.py

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,20 @@
44
from ai.chronon.api.common.ttypes import TableDependency
55
from ai.chronon.api.ttypes import GroupBy, Join, Model, StagingQuery
66
from ai.chronon.cli.compile.compile_context import CompiledObj
7+
from ai.chronon.orchestration.ttypes import PhysicalNode
78

89

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")
1812

19-
@classmethod
20-
def from_group_by(cls, group_by: GroupBy) -> List["PhysicalNode"]:
21-
raise NotImplementedError("Method not yet implemented")
2213

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")
2616

27-
@classmethod
28-
def from_staging_query(cls, staging_query: StagingQuery) -> List["PhysicalNode"]:
29-
raise NotImplementedError("Method not yet implemented")
3017

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")

api/thrift/orchestration.thrift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ union PhysicalNodeType {
9595
5: TableNodeType tableNodeType
9696
}
9797

98+
struct PhysicalNode {
99+
1: required string name,
100+
2: required PhysicalNodeType nodeType,
101+
3: required LogicalNode logicalNode,
102+
4: required string confHash,
103+
5: required list<common.TableDependency> tableDependencies,
104+
6: required list<string> outputColumns,
105+
7: required string output_table
106+
}
107+
108+
98109
// ====================== End of physical node types ======================
99110

100111

0 commit comments

Comments
 (0)