George He
05/11/2022, 6:29 AMLastWithTime
function to get the latest data of each group. But unfortunately I got NPE exception. Original intention is to get the top N of a group after group by ad hoc column. Wondering if I have a grammar issue of my PQL:
select hostname, lastWithTime('alertId', 'issued', 'STRING') from uas_nomalized_alert
where JSON_EXTRACT_SCALAR(attributes, '$.graphQL-businessService', 'STRING', '') = 'Meeting Centers'
group by hostname
alertId
is a 'STRING' column, issued
is a 'TIMESTAMP' columnGeorge He
05/12/2022, 2:14 AMGeorge He
05/12/2022, 3:21 AMNeha Pawar
select lastwithtime(repo, createdTimeMillis, 'STRING'), createdTimeMillis from pullRequestMergedEvents group by createdTimeMillis limit 10