Skip to content

Commit

Permalink
fix uniqueKey assertions for views, incremental_tables (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmagyarkuti authored Oct 7, 2024
1 parent 6fcdab1 commit 5f1b9a0
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 177 deletions.
2 changes: 1 addition & 1 deletion core/actions/incremental_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class IncrementalTable extends ActionBuilder<dataform.Table> {
if (!!assertions.uniqueKey?.length) {
uniqueKeys = [
dataform.ActionConfig.TableAssertionsConfig.UniqueKey.create({
uniqueKey: ["TableAssertionsConfig"]
uniqueKey: assertions.uniqueKey
})
];
}
Expand Down
2 changes: 1 addition & 1 deletion core/actions/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class View extends ActionBuilder<dataform.Table> {
if (!!assertions.uniqueKey?.length) {
uniqueKeys = [
dataform.ActionConfig.TableAssertionsConfig.UniqueKey.create({
uniqueKey: ["TableAssertionsConfig"]
uniqueKey: assertions.uniqueKey
})
];
}
Expand Down
Loading

0 comments on commit 5f1b9a0

Please sign in to comment.