Skip to content

Commit

Permalink
Use late-binding views for Redshift assertions. (#1012)
Browse files Browse the repository at this point in the history
* Use late-binding views for Redshift assertions.

* bump version
  • Loading branch information
BenBirt authored Sep 28, 2020
1 parent 9610da3 commit 8f37cd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/adapters/redshift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class RedshiftAdapter extends Adapter implements IAdapter {
});
return Tasks.create()
.add(Task.statement(this.dropIfExists(target, dataform.TableMetadata.Type.VIEW)))
.add(Task.statement(this.createOrReplaceView(target, assertion.query, true)))
.add(Task.statement(this.createOrReplaceView(target, assertion.query, false)))
.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
}

Expand Down
2 changes: 1 addition & 1 deletion version.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# NOTE: If you change the format of this line, you must change the bash command
# in /scripts/publish to extract the version string correctly.
DF_VERSION = "1.11.0"
DF_VERSION = "1.11.1"

0 comments on commit 8f37cd3

Please sign in to comment.