This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH diff_seconds AS ( | |
| SELECT o.order_id, o.date, DATE_DIFF(date, LAG(date) OVER (ORDER BY date), SECOND) diff | |
| FROM `bi-data-science.DW.order` o | |
| JOIN `bi-data-science.DW.order_item` oi ON o.order_id = oi.order_id | |
| WHERE date >= '2021-01-01' AND | |
| date <= '2021-10-31' | |
| AND o.status_name NOT IN ('Recusado', 'Cancelado', 'Recusado por inconsistência de dados') | |
| AND oi.sku_type IN ('LGPKG', 'LGTKT') | |
| AND o.pos = 'BR' | |
| GROUP BY o.order_id, o.date |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remover todas imagens com um nome ou padrão (usando wildcard *) específico | |
| docker rmi -f $(docker images --filter=reference="{{NOME}}:{{TAG}}" -q) |