LASTWITHTIME
This section contains reference documentation for the lastwithtime function.
Returns the value of dataColumn with the largest 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
LASTWITHTIME(dataColumn, timeColumn, 'dataType')
Example
This example is based on the Streaming Quick Start.
select LASTWITHTIME(group_name, __metadata$recordTimestamp, 'STRING')
from meetupRsvp value
group_name809822304
Was this helpful?

