Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test bugfix #171

Closed
wants to merge 5 commits into from
Closed

Test bugfix #171

wants to merge 5 commits into from

Conversation

colmsnowplow
Copy link
Contributor

@colmsnowplow colmsnowplow commented Nov 28, 2020

This PR removes the splitting of scripts by ; characters. Instead, we attempt to run the entire script, which can contain multiple statements.

This has the unhappy side effect of causing the BQ api to sometimes fail with success - where any but the last statement hits an error.

I believe this to be a bug in the API, since the query does actually fail, and once the error is retrieved it is of a different format to elsewhere (suggesting that it's potentially been handled for others where it's not handled in this case - will raise an issue with them once I've had a chance to produce a clean repro).

This is handled in our code by explicitly checking for an error after the query is complete, before moving on to the next query.

@alexanderdean
Copy link
Member

This is handled in our code by explicitly checking for an error after the query is complete, before moving on to the next query.

That's neat.

@colmsnowplow colmsnowplow changed the base branch from develop to master November 28, 2020 15:50
@coveralls
Copy link

coveralls commented Nov 28, 2020

Coverage Status

Coverage decreased (-0.2%) to 22.68% when pulling 9ee354c on test-bug into 71117ec on master.

@colmsnowplow
Copy link
Contributor Author

Issue raised with the API: googleapis/google-cloud-go#3304

@colmsnowplow
Copy link
Contributor Author

Closing in favour of #172

@paulboocock paulboocock deleted the test-bug branch March 14, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants