blob: ceaf6df9b94aa4b6a10e814f4c5de57b5a80d011 (
plain) (
blame)
1
2
3
4
|
insert into plato.Output
select * from (select IF(key == "foo", LAG(data) over w, data) from
(select TableRow() as data, key, value from plato.Input)
window w as (partition by key)) flatten columns;
|