Query editor
-- Does the chunk merge produce what a single-window layer would?-- Take wallets that appear in BOTH chunks and check the merge arithmetic explicitly.WITH both AS (SELECT a.wallet, a.token,a.bought_qty AS aq, b.bought_qty AS bq,a.legs AS al, b.legs AS bl,a.first_buy AS af, b.first_buy AS bfFROM dune.scopix_team.result_rh_t01b_aug aJOIN dune.scopix_team.result_rh_t01b b ON b.wallet = a.wallet AND b.token = a.token)SELECT CAST(count(*) AS varchar) AS pairs_in_both_chunks,CAST(count(DISTINCT wallet) AS varchar) AS wallets_affected,CAST(sum(CASE WHEN bf <= af THEN 1 ELSE 0 END) AS varchar) AS sep_earlier_than_aug,CAST(round(avg(al + bl), 1) AS varchar) AS avg_merged_legsFROM both