Open Reidsy opened 1 week ago
I've created a pull request to address this https://github.com/airbytehq/airbyte/pull/45108
Thanks a lot @Reidsy! An engineer from the team was assigned to review your contribution. Let me know if you need any assistante.
Connector Name
source-google-sheets
Connector Version
0.7.1
What step the error happened?
During the sync
Relevant information
When syncing with google sheets, if the google sheets api returns an error that is unknown (not
FORBIDDEN
orTOO_MANY_REQUESTS
), an error is logged but an exception is not raised. This causes airbyte to consider the sheet having zero rows of data and delete all the rows in the destination table.Problematic code: https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-google-sheets/source_google_sheets/source.py#L261
Expectation: Airbyte should fail the job and try again.
What actually happens: Airbyte updates the table to have zero rows
Solution: The code should raise an
AirbyteTracedException
for any api calls that result in an unsuccessful status code. https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-google-sheets/source_google_sheets/source.py#L261Relevant log output
Contribute