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 ,
@@ -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 ) )
You can’t perform that action at this time.
0 commit comments