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

bigquery: remove extraneous info from query result requests #2341

Merged
merged 2 commits into from
Jun 1, 2017

Conversation

stephenplusplus
Copy link
Contributor

Fixes #1503
Fixes #2337

When a user runs a query, we make two requests: 1) POST the query that starts the job, 2) GET the results from the job. If the user has a long query, step 2 will fail because the GET request contains too many characters/too much information. This PR removes that extraneous information.

@stephenplusplus stephenplusplus added the api: bigquery Issues related to the BigQuery API. label May 31, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 31, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+3.0e-06%) to 99.988% when pulling 990469f on stephenplusplus:spp--2337 into 0421ba8 on GoogleCloudPlatform:master.

var job = options.job;

var requestQuery = extend({}, options);
delete requestQuery.job;

if (job) {
// Get results of the query.
delete requestQuery.params;
delete requestQuery.query;

self.request({

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.0e-06%) to 99.988% when pulling 4bebacb on stephenplusplus:spp--2337 into 0421ba8 on GoogleCloudPlatform:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants