pw.io.null
write(table, *, name=None, sort_by=None)
sourceWrites table
’s stream of updates to the empty sink.
Inside this routine, the data is formatted into the empty object, and then doesn’t get written anywhere.
- Parameters
- table (
Table
) – Table to be written. - name (
str
|None
) – A unique name for the connector. If provided, this name will be used in logs and monitoring dashboards. - sort_by (
Optional
[Iterable
[ColumnReference
]]) – If specified, the output will be sorted in ascending order based on the values of the given columns within each minibatch. When multiple columns are provided, the corresponding value tuples will be compared lexicographically.
- table (
- Returns
None
Example:
One (of a very few) examples, where you can probably need this kind of functionality if the case when a Pathway program is benchmarked and the IO part needs to be simplified as much as possible.
If the table is table
, the null output can be configured in the following way:
pw.io.null.write(table)