FIRSTWITHTIME
This section contains reference documentation for the firstwithtime function.
Returns the value of dataColumn with the smallest timeColumn value where:
timeColumnis used to define the time ofdataColumn, which can be of typeTIMESTAMP,INT,LONGdataTypespecifies the type fordataColumn, which can beBOOLEAN,INT,LONG,FLOAT,DOUBLE,STRING
Signature
FIRSTWITHTIME(dataColumn, timeColumn, 'dataType')
Example
This example is based on the Streaming Quick Start.
select FIRSTWITHTIME(group_name, __metadata$recordTimestamp, 'STRING')
from meetupRsvp value
group_name1016303453
Last updated
Was this helpful?

