[destination-bigquery] BigQuery sync fails when destination project has a reserved name #49833
Labels
area/connectors
Connector related issues
community
connectors/destination/bigquery
team/destinations
Destinations team's backlog
type/bug
Something isn't working
Connector Name
destination-bigquery
Connector Version
2.9.0
What step the error happened?
During the sync
Relevant information
Expected Behavior
When syncing to BigQuery destination all tables irrespective of whether their path has reserved keywords in Standard SQL should be capable of being synced.
Current Behavior
If you have a table which path has a reserved keyword in its name (e.g. "group" in project name in my case), the drop statement used to recreate Airbyte's internal tables on BigQuery uses the unqualified table name and BigQuery complains that a reserved keyword is in the table path, which leads to table drop fail. Logs below:
Steps to Reproduce
Create a project that has a SQL reserved keyword in name (e.g. group)
Create a table in the project
Attempt to set up a sync to BigQuery
Run a sync and it will fail
Severity of the bug for you
High
Additional context
I found this part in the connector's code which I think is related to my problem, there it doesn't put backticks when dropping the table.
Relevant log output
Contribute
The text was updated successfully, but these errors were encountered: