You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is the query for getting node update activities up to the last approved date for a specific table. ~350ms
Those results, merged with prev cycle data -> will produce the last approved dataset to compare with
with activities as
(selectal.country_isoas country_iso
, t.props->>'name'as table_name
, r.props->>'variableName'as variable_name
, c.props->>'colName'as col_name
, al.target->'value'as value
, row_number() over (partition by al.target->>'colUuid'order byal.timedesc ) as row_number
frompublic.activity_log al
left joinassessment_fra_2025.country_summary cs onal.country_iso=cs.country_isoleft joinpublic.assessment a onal.assessment_uuid=a.uuidleft joinpublic.assessment_cycle ac ona.id=ac.assessment_idandal.cycle_uuid=ac.uuidleft joinassessment_fra.col c on (al.target->>'colUuid')::uuid =c.uuidleft joinassessment_fra.row r onc.row_id=r.idleft join assessment_fra."table" t onr.table_id=t.idwhereal.messagein ('nodeValueCalculatedUpdate', 'nodeValueEstimate', 'nodeValueUpdate')
andal.country_iso='FIN'anda.props->>'name'='fra'andac.name='2025'andal.time<cs.last_acceptedandt.props->>'name'='extentOfForest')
select*from activities a;
The text was updated successfully, but these errors were encountered:
this is the query for getting node update activities up to the last approved date for a specific table. ~350ms
Those results, merged with prev cycle data -> will produce the last approved dataset to compare with
The text was updated successfully, but these errors were encountered: