File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/cubejs-bigquery-driver/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121import { Bucket , Storage } from '@google-cloud/storage' ;
2222import {
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 ) )
You can’t perform that action at this time.
0 commit comments