MCPcopy Index your code
hub / github.com/pathwaycom/pathway / InternalColRef

Class InternalColRef

python/pathway/internals/expression.py:63–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62@dataclasses.dataclass(frozen=True)
63class InternalColRef(InternalColExpr):
64 kind: type[ColumnReference]
65
66 def to_column_expression(self) -> ColumnReference:
67 return cast(ColumnReference, super().to_column_expression())
68
69 @staticmethod
70 def build(kind, *args, **kwargs) -> InternalColRef:
71 assert kind == ColumnReference
72 ret = InternalColExpr.build(kind, *args, **kwargs)
73 return InternalColRef(kind, args=ret.args, kwargs=ret.kwargs)
74
75 @property
76 def _name(self) -> str:
77 return self.to_column_expression()._name
78
79 @property
80 def _table(self) -> Table:
81 return self.to_column_expression()._table
82
83 @property
84 def _column(self) -> Column:
85 return self.to_column_expression()._column
86
87
88class ColumnExpression(OperatorInput, ABC):

Callers 1

buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected