Skip to content

Commit 3f9eaf4

Browse files
committed
fix types in bigQuery driver
1 parent 77a1b66 commit 3f9eaf4

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,
@@ -202,7 +203,7 @@ export class BigQueryDriver extends BaseDriver implements DriverInterface {
202203
);
203204
}
204205

205-
return [];
206+
return {};
206207
} catch (e) {
207208
if ((<any>e).message.includes('Permission bigquery.tables.get denied on table')) {
208209
return {};
@@ -212,7 +213,7 @@ export class BigQueryDriver extends BaseDriver implements DriverInterface {
212213
}
213214
}
214215

215-
public async tablesSchema() {
216+
public async tablesSchema(): Promise<DatabaseStructure> {
216217
const dataSets = await this.bigquery.getDatasets();
217218
const dataSetsColumns = await Promise.all(
218219
dataSets[0].map((dataSet) => this.loadTablesForDataset(dataSet))

0 commit comments

Comments
 (0)