Skip to content

Commit

Permalink
add file name (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinFlipside authored Sep 11, 2024
1 parent dea20ae commit 95a45c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions macros/streamline/models.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
)
) AS id,
s.{{ partition_name }},
s.value AS VALUE
s.value AS VALUE,
file_name
FROM
{{ source(
"bronze_streamline",
Expand Down Expand Up @@ -85,7 +86,8 @@ SELECT
)
) AS id,
s.{{ partition_name }},
s.value AS VALUE
s.value AS VALUE,
file_name
FROM
{{ source(
"bronze_streamline",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
SELECT
id,
block_number,
file_name,
_inserted_timestamp
FROM

Expand All @@ -29,4 +30,4 @@ WHERE

qualify(ROW_NUMBER() over (PARTITION BY id
ORDER BY
_inserted_timestamp DESC)) = 1
_inserted_timestamp DESC)) = 1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
SELECT
id,
block_number,
file_name,
_inserted_timestamp
FROM

Expand All @@ -29,4 +30,4 @@ WHERE

qualify(ROW_NUMBER() over (PARTITION BY id
ORDER BY
_inserted_timestamp DESC)) = 1
_inserted_timestamp DESC)) = 1

0 comments on commit 95a45c2

Please sign in to comment.