Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions models/staging/winning_bids.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ config(materialized='view', indexes=[{'columns': 'buyer'}, {'columns': 'seller'}]) }}
{{ config(materialized='view', indexes=[{'columns': 'seller'}]) }}) }}

SELECT DISTINCT ON
(auctions.id) bids.*,
Expand All @@ -7,4 +7,4 @@ SELECT DISTINCT ON
FROM {{ source('auction','auctions') }}
JOIN {{ source('auction','bids') }} ON auctions.id = bids.auction_id
WHERE bids.bid_time < auctions.end_time
AND mz_now() >= auctions.end_time
AND mz_now() >= auctions.end_time
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "<3.11,>=3.8.0"
dbt-materialize = "1.4.0"
dbt-materialize = "1.5.1"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down