MCPcopy Create free account
hub / github.com/pathwaycom/pathway / create_id_from

Method create_id_from

python/pathway/tests/utils.py:196–205  ·  view source on GitHub ↗
(
        pk_table: pw.Table,
        pk_columns: dict[str, api.Value],
        instance: api.Value | None = None,
    )

Source from the content-addressed store, hash-verified

194
195 @staticmethod
196 def create_id_from(
197 pk_table: pw.Table,
198 pk_columns: dict[str, api.Value],
199 instance: api.Value | None = None,
200 ) -> api.Pointer:
201 values = list(pk_columns.values())
202 if instance is None:
203 return api.ref_scalar(*values)
204 else:
205 return api.ref_scalar_with_instance(*values, instance=instance)
206
207
208# This class is an abstract subclass of OnChangeCallback, which takes a list of entries

Callers 3

createMethod · 0.80
test_keep_results_manualFunction · 0.80
generate_expectedFunction · 0.80

Calls 1

valuesMethod · 0.80

Tested by 2

test_keep_results_manualFunction · 0.64
generate_expectedFunction · 0.64