MCPcopy
hub / github.com/pathwaycom/pathway / _freeze

Method _freeze

python/pathway/internals/table.py:901–917  ·  view source on GitHub ↗
(
        self,
        threshold_column: expr.ColumnExpression,
        time_column: expr.ColumnExpression,
        instance_column: expr.ColumnExpression | None = None,
    )

Source from the content-addressed store, hash-verified

899 @check_arg_types
900 @contextualized_operator
901 def _freeze(
902 self,
903 threshold_column: expr.ColumnExpression,
904 time_column: expr.ColumnExpression,
905 instance_column: expr.ColumnExpression | None = None,
906 ) -> Table[TSchema]:
907 # FIXME: freeze can be incorrect if the input is not append-only
908 # we may produce insertion but never produce deletion
909 if instance_column is None:
910 instance_column = expr.ColumnConstExpression(None)
911 context = clmn.FreezeContext(
912 self._id_column,
913 self._eval(threshold_column),
914 self._eval(time_column),
915 self._eval(instance_column),
916 )
917 return self._table_with_context(context)
918
919 @trace_user_frame
920 @desugar

Callers 7

ignore_lateMethod · 0.95
apply_temporal_behaviorFunction · 0.80
_applyMethod · 0.80
test_freezeFunction · 0.80
test_freeze_instanceFunction · 0.80
test_freeze_no_instanceFunction · 0.80

Calls 2

_evalMethod · 0.95
_table_with_contextMethod · 0.95

Tested by 4

test_freezeFunction · 0.64
test_freeze_instanceFunction · 0.64
test_freeze_no_instanceFunction · 0.64