make_event¶
Type of operation: Metadata
Description¶
Creates an Event dataset from an input Table, Interval, or Resource dataset. When the verb input is a Table dataset, make_event
requires the name of the new Valid From
column, and will filter results to be within the query window. When the verb input is an Interval or Resource dataset, make_event
takes no arguments. For Resource datasets, make_event
demotes each resource to the series of update events which would create it.
Usage¶
make_event [ validFrom ]
Argument |
Type |
Required |
Multiple |
---|---|---|---|
validFrom |
fieldref |
Optional |
Only one |
Accelerable¶
make_event is always accelerable if the input is accelerable. A dataset that only uses accelerable verbs can be accelerated, making queries on the dataset respond faster.
Examples¶
make_event
Where the input is a Resource dataset, create an Event dataset based on its resources. For each state change of a resource in the input, make_event
emits a row describing that new state. The Valid From
value is the time the state change occurred. The output dataset retains most metadata from the input dataset, including any primary keys.
make_event
For an Interval dataset input, create an Event dataset containing one event for each interval. The timestamp column of the output is the “Valid From” column of the input.
make_event vf
Creates an Event dataset from the input Table dataset, using ‘vf’ as the new Valid From
column. The output will be filtered to only include rows within the query window.
Aliases¶
changelog
(deprecated)