Problem Note 67539: SASĀ® might display an error when you attempt to delete a Google BigQuery view
The DATASETS and DELETE procedures might fail to delete a Google BigQuery view, and an error that is similar to the following appears:
ERROR: CLI execute error: Error: googleapi: Error 400: Cannot drop gcp-project:data-set.view-name which has type VIEW. A table was expected., invalid
The only workaround is to use an explicit SQL query. Here is an example:
proc sql ;
connect to bigquery (connection-options) ;
execute by dbms (drop view view-name) ;
quit ;
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Google BigQuery | Linux for x64 | 9.4 | 9.43 | 9.4 TS1M6 | 9.4 TS1M8 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
PROC DATASETS and PROC DELETE might display an error when attempting to delete a Google BigQuery view. The message is "Error 400: Cannot drop gcp-project:data-set.view-name which has type view. A table was expected."
Type: | Problem Note |
Priority: | high |
Topic: | SAS Reference ==> Procedures ==> DATASETS SAS Reference ==> Procedures ==> DELETE SAS Reference ==> Procedures ==> SQL
|
Date Modified: | 2021-04-13 10:29:34 |
Date Created: | 2021-03-03 05:56:43 |