Skip to content

Commit

Permalink
Merge pull request #7 from AlexandreJSimon/schema_in_query_view_ref
Browse files Browse the repository at this point in the history
Add updates schema in view query ref
  • Loading branch information
Ekrekr authored Dec 27, 2023
2 parents c4def80 + 979902c commit 1a7cc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = (
${timestamp} as scd_valid_from,
lead(${timestamp}) over (partition by ${uniqueKey} order by ${timestamp} asc) as scd_valid_to
from
${ctx.ref(`${name}_updates`)}
${ctx.ref(updates.proto.target.schema, `${name}_updates`)}
`
);

Expand Down

0 comments on commit 1a7cc19

Please sign in to comment.