Skip to content

Commit 128d7d7

Browse files
committed
Update loadPatternLinkSatelliteDrivingKeyView.Handlebars
1 parent f02d947 commit 128d7d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Virtual_EDW/LoadPatterns/loadPatternLinkSatelliteDrivingKeyView.Handlebars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ FROM
5454
[{{../metadataConfiguration.sourceRowIdAttribute}}],
5555
[{{../metadataConfiguration.changeDataCaptureAttribute}}],{{#each businessKeys}}{{#each businessKeyComponentMapping}}
5656
[{{sourceDataItems.0.name}}] AS [{{targetDataItem.name}}],{{/each}}{{/each}}
57-
{{#each businessKeys}}{{#each BusinessKeyComponentMapping}}{{#each SourceDataItems}}{{#stringdiff dataItemClassification.0.classification "DrivingKey"}}LAG ([{{name}}], 1, '0') OVER (
57+
{{#each businessKeys}}{{#each BusinessKeyComponentMapping}}{{#each SourceDataItems}}{{#stringdiff dataItemClassification.0.classification "DrivingKey"}}LAG ([{{../name}}], 1, '0') OVER (
5858
PARTITION BY {{#each ../../../../businessKeys}}{{#each BusinessKeyComponentMapping}}{{#each SourceDataItems}}{{#stringcompare dataItemClassification.0.classification "DrivingKey"}}{{name}}{{#unless @last}},{{/unless}}{{/stringcompare}}{{/each}}{{/each}}{{/each}}
5959
ORDER BY [{{../../../../../metadataConfiguration.loadDateTimeAttribute}}]
6060
) AS PREVIOUS_FOLLOWER_KEY{{@index}} {{/stringdiff}}{{/each}}{{/each}}{{/each}}
@@ -93,4 +93,4 @@ WHERE
9393
-- ORDER BY
9494
{{#each businessKeys}}{{#each BusinessKeyComponentMapping}}{{#each SourceDataItems}}{{#stringcompare dataItemClassification.0.classification "DrivingKey"}}-- [{{../../targetDataItem.name}}],{{/stringcompare}}{{/each}}{{/each}}{{/each}}
9595
-- [{{../metadataConfiguration.loadDateTimeAttribute}}]
96-
{{/each}}
96+
{{/each}}

0 commit comments

Comments
 (0)