diff --git a/api/dbadapters/sqldatawarehouse.ts b/api/dbadapters/sqldatawarehouse.ts index 8c90a27e9..53908b190 100644 --- a/api/dbadapters/sqldatawarehouse.ts +++ b/api/dbadapters/sqldatawarehouse.ts @@ -90,7 +90,7 @@ export class SQLDataWarehouseDBAdapter implements IDbAdapter { } public async preview(target: dataform.ITarget, limitRows: number = 10): Promise { - 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 { diff --git a/version.bzl b/version.bzl index dbd7765cd..23b4d0376 100644 --- a/version.bzl +++ b/version.bzl @@ -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"