Skip to content

Add query request and query response classes and tests#452

Merged
aozarov merged 4 commits intogoogleapis:bigqueryfrom
mziccard:bigquery
Dec 14, 2015
Merged

Add query request and query response classes and tests#452
aozarov merged 4 commits intogoogleapis:bigqueryfrom
mziccard:bigquery

Conversation

@mziccard
Copy link
Contributor

This PR adds classes for Query Requests and Query Responses:

Remarks
QueryResponse has no fromPb method as it is initialized through the builder inside the BigQueryServiceImpl class. This is so because:

  • we need service and service options to initialize the field Page<List<FieldValue>> rows
  • QueryResponse is created from 2 pb classes: QueryResponse and GetQueryResultsResponse
    I preferred to handle the creation inside BigQueryServiceImpl rather than having a fromPb method with more parameters.

@mziccard mziccard added the api: bigquery Issues related to the BigQuery API. label Dec 11, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 11, 2015

This comment was marked as spam.

@mziccard
Copy link
Contributor Author

Ehi guys, thanks for the feedback. I fixed all comments and answered the open questions.

This comment was marked as spam.

This comment was marked as spam.

- Add better javadoc and snippet to QueryResponse
- Use primitive boolean for jobComplete
- Add test for NPE in QueryRequestTests
- Add QueryRequest and QueryResponse to SerializationTest
@mziccard
Copy link
Contributor Author

@ajkannan I fixed the typo in 9756dff
@aozarov I added the QueryResult class in e16c027

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