Skip to content

Commit 16b0c54

Browse files
committed
fix types in bigQuery driver
1 parent ad21b48 commit 16b0c54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cubejs-bigquery-driver/src/BigQueryDriver.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
import { Bucket, Storage } from '@google-cloud/storage';
2222
import {
2323
BaseDriver,
24+
DatabaseStructure,
2425
DriverCapabilities,
2526
DriverInterface,
2627
QueryColumnsResult,
@@ -200,7 +201,7 @@ export class BigQueryDriver extends BaseDriver implements DriverInterface {
200201
);
201202
}
202203

203-
return [];
204+
return {};
204205
} catch (e) {
205206
if ((<any>e).message.includes('Permission bigquery.tables.get denied on table')) {
206207
return {};
@@ -210,7 +211,7 @@ export class BigQueryDriver extends BaseDriver implements DriverInterface {
210211
}
211212
}
212213

213-
public async tablesSchema() {
214+
public async tablesSchema(): Promise<DatabaseStructure> {
214215
const dataSets = await this.bigquery.getDatasets();
215216
const dataSetsColumns = await Promise.all(
216217
dataSets[0].map((dataSet) => this.loadTablesForDataset(dataSet))

0 commit comments

Comments
 (0)