query:
insert into test2
( EXCEPT(id,version,logo),id,version,logo)
select EXCEPT(id,version,logo) APPLY(x->argMax(x,version)), id, max(version)+1,{logo:String}
from test2
where id={id:UUID}
group by id
exception:
Error: insert query wasnt parsed field list after TABLE_NAME
query: insert into test2 ( EXCEPT(id,version,logo),id,version,logo) select EXCEPT(id,version,logo) APPLY(x->argMax(x,version)), id, max(version)+1,{logo:String} from test2 where id={id:UUID} group by id
exception: Error: insert query wasnt parsed field list after TABLE_NAME