GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bigquery: simplify query types by pongad · Pull Request #2653 · googleapis/google-cloud-java

Conversation

@pongad

@pongad pongad commented Nov 22, 2017

Copy link
Copy Markdown
Contributor

Updates #2591.

Previous PR, #2642, broke Job.getQueryResults in two ways:

  1. It wasn't possible to get total number of rows.
  2. The returned iterator doesn't record schema, so it wasn't possible
    to call row.get(String).

This PR prepares the fix.
Actually landing the fix will change tests,
so it is punted to another PR to keep changes small.

From previous meeting, it was our decision to remove

  • BigQuery.getQueryResults method
  • QueryResponse class

However, the method is being used internally by the client,
and interfaces only have public members.
Removing them altogether entails a big surgery,
so this PR instead mark them @internalapi.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pongad
bigquery: simplify query types
ed1f981
Updates #2591.

Previous PR, #2642, broke Job.getQueryResults in two ways:
1. It wasn't possible to get total number of rows.
2. The returned iterator doesn't record schema, so it wasn't possible
   to call `row.get(String)`.

This PR prepares the fix.
Actually landing the fix will change tests,
so it is punted to another PR to keep changes small.

From previous meeting, it was our decision to remove
- BigQuery.getQueryResults method
- QueryResponse class

However, the method is being used internally by the client,
and interfaces only have public members.
Removing them altogether entails a big surgery,
so this PR instead mark them @internalapi.
@pongad
pongad requested a review from tswast November 22, 2017 09:45
@pongad
pongad requested a review from garrettjonesgoogle as a code owner November 22, 2017 09:45
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 22, 2017
pongad
pongad commented Nov 22, 2017
View reviewed changes
Comment thread google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryResult.java
import java.util.Objects;

public class QueryResult extends PageImpl<FieldValueList> {
// TODO(pongad): Serializable ?

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tswast
tswast approved these changes Nov 22, 2017
View reviewed changes
Comment thread google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java
// TODO(pongad): return QueryResult so we can inject schema.
// QueryResponse response = bigquery.getQueryResults(getJobId()); // should return immediately
// return new QueryResult(response.getSchema(), response.getTotalRows(), bigquery.listTableData(table));
return bigquery.listTableData(table);

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryResult.java
private final Page<FieldValueList> pageNoSchema;
private final Function<FieldValueList, FieldValueList> addSchemaFunc;

QueryResult(final Schema schema, long totalRows, Page<FieldValueList> pageNoSchema) {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pongad added 2 commits November 23, 2017 17:28
@pongad
pr comment
1184fc9
@pongad
fix links
ecdfb3e
@pongad
pongad merged commit 6faec8f into googleapis:bq-perf Nov 23, 2017
@pongad
pongad deleted the bq-response branch November 23, 2017 07:02
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@zhumin8
deps: update gapic-showcase to v0.33.0 (#2653)
5c12155
update gapic-showcase so that we can pickup changes in
googleapis/gapic-showcase#1484

Steps: 
1) Updated the gapic-showcase version in `gapic-showcase/pom.xml` to
0.33.0
2) Ran `mvn compile -P update`
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@release-please
chore(main): release 2.40.0 (#2679)
32ebbe1
🤖 I have created a release *beep* *boop*
---


<details><summary>2.40.0</summary>

##
[2.40.0](googleapis/sdk-platform-java@v2.39.0...v2.40.0)
(2024-05-02)


### Features

* [common-protos] add `Weight` to common types for Shopping APIs to be
used for accounts bundle
([#2699](googleapis/sdk-platform-java#2699))
([90a28ef](googleapis/sdk-platform-java@90a28ef))
* add a CLI tool to validate generation configuration
([#2691](googleapis/sdk-platform-java#2691))
([f52f8cc](googleapis/sdk-platform-java@f52f8cc))
* Parser to consume the api-versioning value from proto
([#2630](googleapis/sdk-platform-java#2630))
([c112b37](googleapis/sdk-platform-java@c112b37))
* Update Gapic generator and Gax to emit api-versioning via header
([#2671](googleapis/sdk-platform-java#2671))
([cb5ada0](googleapis/sdk-platform-java@cb5ada0))


### Bug Fixes

* change folder prefix for adding headers
([#2688](googleapis/sdk-platform-java#2688))
([ab5ba1d](googleapis/sdk-platform-java@ab5ba1d))
* Log HttpJson's async thread pool core size
([#2697](googleapis/sdk-platform-java#2697))
([31038d1](googleapis/sdk-platform-java@31038d1))
* replace `cfg = "host"` with `cfg = "exec"`
([#2637](googleapis/sdk-platform-java#2637))
([fd12e0f](googleapis/sdk-platform-java@fd12e0f))
* Return resolved endpoint from StubSettings' Builder
([#2715](googleapis/sdk-platform-java#2715))
([6139a73](googleapis/sdk-platform-java@6139a73))


### Dependencies

* Make opentelemetry-api an optional dependency.
([#2681](googleapis/sdk-platform-java#2681))
([2239c8c](googleapis/sdk-platform-java@2239c8c))
* update dependency absl-py to v2.1.0
([#2659](googleapis/sdk-platform-java#2659))
([b2b7738](googleapis/sdk-platform-java@b2b7738))
* update dependency gitpython to v3.1.43
([#2656](googleapis/sdk-platform-java#2656))
([6d273ad](googleapis/sdk-platform-java@6d273ad))
* update dependency lxml to v5.2.1
([#2661](googleapis/sdk-platform-java#2661))
([7a34168](googleapis/sdk-platform-java@7a34168))
* update dependency net.bytebuddy:byte-buddy to v1.14.14
([#2703](googleapis/sdk-platform-java#2703))
([72b0441](googleapis/sdk-platform-java@72b0441))
* update dependency typing to v3.10.0.0
([#2663](googleapis/sdk-platform-java#2663))
([4c64e98](googleapis/sdk-platform-java@4c64e98))
* update gapic-showcase to v0.33.0
([#2653](googleapis/sdk-platform-java#2653))
([5c12155](googleapis/sdk-platform-java@5c12155))


### Documentation

* Add contributing guidelines to PR and issue templates
([#2682](googleapis/sdk-platform-java#2682))
([82f5ce8](googleapis/sdk-platform-java@82f5ce8))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Mar 30, 2026
@diegomarquezp @cloud-java-bot
chore: modify readme's transport support description (#2653)
5cd0dec
* chore: modify readme's transport support description

* chore: generate libraries at Wed Jul 31 02:31:45 UTC 2024

---------

Co-authored-by: cloud-java-bot <[email protected]>
rahul2393 pushed a commit to akash329d/google-cloud-java that referenced this pull request May 21, 2026
@cloud-java-bot
chore: Update generation configuration at Sat Oct 11 02:32:04 UTC 2025 (
d0fcf12
googleapis#2653)

This pull request is generated with proto changes between [googleapis/googleapis@b031657](https://togithub.com/googleapis/googleapis/commit/b0316578aaf7434e3c5bb93badd252f67aacf8d5) (exclusive) and [googleapis/googleapis@6821943](https://togithub.com/googleapis/googleapis/commit/6821943108fe3284f483defc9b60774a3752de2b) (inclusive).

BEGIN_COMMIT_OVERRIDE
BEGIN_NESTED_COMMIT
fix(deps): update the Java code generator (gapic-generator-java) to 2.62.3
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
chore: update the libraries_bom version to 26.70.0
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: Add Type API updates needed to support structured keys in materialized views
feat: Add encodings for STRUCT and the Timestamp type

PiperOrigin-RevId: 805031861

Source Link: [googleapis/googleapis@6d1dca2](https://togithub.com/googleapis/googleapis/commit/6d1dca2b8e3d50914609414e219df2778b2b20ba)
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
fix: Fixed the bigtableadmin API name for snippet region tags and possibly other GAPIC attributes

PiperOrigin-RevId: 797086089

Source Link: [googleapis/googleapis@3b2a2ae](https://togithub.com/googleapis/googleapis/commit/3b2a2ae91db23a9c879b2b725d6a5de6bd64a800)
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
fix: Add ReadRows/SampleRowKeys bindings for materialized views

PiperOrigin-RevId: 793800781

Source Link: [googleapis/googleapis@fe06a49](https://togithub.com/googleapis/googleapis/commit/fe06a492944dc3a8360ed5b426942d34631eeca7)
END_NESTED_COMMIT
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tswast tswast tswast approved these changes
@garrettjonesgoogle garrettjonesgoogle Awaiting requested review from garrettjonesgoogle

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@pongad @tswast @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.