QueryStash
Thanks to this presentation from Google for this great tip.
Avoids resource exceeded issue on BigQuery with very large data, much better approach.
1SELECT 2 item, 3 ARRAY_AGG(price ORDER BY date DESC)[OFFSET(0)] AS latest_price 4FROM products 5GROUP BY item
Created: Sep 27th 2020
Made with ❤️ by @Yekalb
© 2024 Query Stash. All rights reserved
Resources
Examples
Stay up to date