File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77use Google \Cloud \BigQuery \BigQueryClient ;
88use Keboola \TableBackendUtils \Escaping \Bigquery \BigqueryQuote ;
9+ use Keboola \TableBackendUtils \ReflectionException ;
910use Keboola \TableBackendUtils \Schema \SchemaReflectionInterface ;
1011use Keboola \TableBackendUtils \TableNotExistsReflectionException ;
1112use LogicException ;
@@ -33,7 +34,7 @@ public function getTablesNames(): array
3334 }
3435 $ query = $ this ->bqClient ->query (
3536 sprintf (
36- 'SELECT * FROM %s.INFORMATION_SCHEMA.TABLES; ' ,
37+ 'SELECT * FROM %s.INFORMATION_SCHEMA.TABLES WHERE `table_type` != \' VIEW \' ; ' ,
3738 BigqueryQuote::quoteSingleIdentifier ($ this ->datasetName ),
3839 )
3940 );
@@ -72,7 +73,7 @@ public function getViewsNames(): array
7273 {
7374 $ isDatasetExist = $ this ->bqClient ->dataset ($ this ->datasetName )->exists ();
7475 if ($ isDatasetExist === false ) {
75- throw new TableNotExistsReflectionException (sprintf ('Dataset "%s" not found ' , $ this ->datasetName ));
76+ throw new ReflectionException (sprintf ('Dataset "%s" not found ' , $ this ->datasetName ));
7677 }
7778 $ query = $ this ->bqClient ->query (
7879 sprintf (
You can’t perform that action at this time.
0 commit comments