Skip to content

Commit

Permalink
Fix preview query for SqlDataWarehouse (#366)
Browse files Browse the repository at this point in the history
* Fix preview query for SqlDataWarehous

* increment version
  • Loading branch information
faiyaz26 authored and probot-auto-merge[bot] committed Aug 14, 2019
1 parent deb5bc6 commit 0ffcc88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/dbadapters/sqldatawarehouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class SQLDataWarehouseDBAdapter implements IDbAdapter {
}

public async preview(target: dataform.ITarget, limitRows: number = 10): Promise<any[]> {
return this.execute(`SELECT * FROM "${target.schema}"."${target.name}" LIMIT ${limitRows}`);
return this.execute(`SELECT TOP ${limitRows} * FROM "${target.schema}"."${target.name}"`);
}

public async prepareSchema(schema: string): Promise<void> {
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.2.1"
DF_VERSION = "1.2.2"

0 comments on commit 0ffcc88

Please sign in to comment.