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

Function test_stream_to_table

python/pathway/tests/test_column_properties.py:831–841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

829
830
831def test_stream_to_table():
832 class Schema(pw.Schema):
833 a: bool = pw.column_definition(append_only=True)
834 b: int = pw.column_definition(append_only=True)
835
836 table = table_from_datasource(TestDataSource(schema=Schema))
837 result = table.stream_to_table(pw.this.a)
838
839 assert not result._id_column.properties.append_only
840 assert not result.a._column.properties.append_only
841 assert not result.b._column.properties.append_only
842
843
844def test_from_streams():

Callers

nothing calls this directly

Calls 3

table_from_datasourceFunction · 0.90
TestDataSourceClass · 0.90
stream_to_tableMethod · 0.80

Tested by

no test coverage detected