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 — merge bq-perf branch by pongad · Pull Request #2755 · googleapis/google-cloud-java

Conversation

@pongad

@pongad pongad commented Jan 8, 2018

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
pongad added 20 commits November 8, 2017 16:05
@pongad
bigquery: make query return a Job (#2566)
6125c56
Eventually we'll delete QueryResponse completely so that we can
use the faster listTableData RPC.
@pongad
Merge branch 'master' into bq-perf
c98a09c
@pongad
bigquery: give QueryResult fewer fields (#2592)
8259a78
In the future, we might populate it with result from tabledata.list.
The response has fewer fields than that of getQueryResults.
@pongad
bigquery: Job.getQueryResults returns QueryResult (#2593)
4bf9d80
This is the first step in removing QueryResponse.

This PR first creates QueryResult then retrieves the Response.
Eventually, we'll directly create Result from tabledata.list RPC.
@pongad
Merge branch 'master' into bq-perf
0aac950
@pongad
bigquery: read query results only if query finished (#2637)
7b15777
@pongad
bigquery: use tabledata.list for query (#2642)
5304fbb
This sped up query benchmark from 470s to 360s.

This breaks "schema injection" however,
so users cannot call `row.get(String)`.
This will be fixed in a follow up.

Updates #2591.
@pongad
Merge branch 'master' into bq-perf
5fa8fa6
@pongad
bigquery: simplify query types (#2653)
6faec8f
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
bigquery: make schema work again (#2660)
66dee5d
Updates #2591.
@pongad
Merge branch 'master' into bq-perf
f6bcbc2
@pongad
bigquery: make query() return iterator (#2685)
0e2e9ed
This also makes queries require fewer RPCs if detailed job statuses are
not required.

If a query fails, then query() throws an exception detailing why
it fails and provides the job ID so users can retrieve more details
themselves.

Updates #2591.
@pongad
bigquery: allow schema-ful data listing (#2697)
8ac24ed
listTableData and query now use the same classes.
@pongad
Merge branch 'master' into bq-perf
8959c2c
@pongad
bigquery: add test and fix silly bugs (#2712)
ad69088
@pongad
bigquery: document new methods (#2709)
47e805a
@pongad
bigquery: properly spell "BigQuery" (#2716)
3313bcb
@pongad
bigquery: properly handle options to Job.getQueryResults (#2713)
c34e949
@pongad
add bigquery release notes (#2717)
7d843ad
@pongad
bigquery: also allow schema-ful list from Table (#2718)
f370cbe
@pongad
pongad requested review from garrettjonesgoogle and tswast January 8, 2018 05:11
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 8, 2018
tswast
tswast requested changes Jan 8, 2018
View reviewed changes
Comment thread google-cloud-bigquery/README.md Outdated
QueryOption.of(QueryResultsOption.maxWaitTime(60000L)),
QueryOption.of(QueryResultsOption.pageSize(1000L)));
QueryJobConfiguration queryConfig =
QueryJobConfiguration.newBuilder("SELECT * FROM my_dataset_id.my_table_id").build();

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/README.md
// Read rows
System.out.println("Table rows:");
for (FieldValues row : queryResponse.getResult().iterateAll()) {
for (FieldValueList row : bigquery.query(queryConfig).iterateAll()) {

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/BigQuery.java
* @throws BigQueryException upon failure
*/
Page<FieldValueList> listTableData(TableId tableId, TableDataListOption... options);
TableResult listTableData(TableId tableId, TableDataListOption... options);

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/BigQuery.java Outdated
* String tableName = "my_table_name";
* Schema schema = ...;
* String field = "my_field";
* Page<FieldValueList> tableData =

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/BigQuery.java
* Field.of("corpus", LegacySQLTypeName.STRING),
* Field.of("corpus_date", LegacySQLTypeName.STRING));
* Page<FieldValueList> page =
* bigquery.listTableData(

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/TableResult.java Outdated
* Returns the total number of rows in the complete result set, which can be more than the number
* of rows in the first page of results returned by {@link #getValues()}.
*
* <p>If this instance is a result of a dry-run query, returns {@code 0}.

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/test/java/com/google/cloud/bigquery/BigQueryImplTest.java Outdated
for (FieldValueList row : response.getResult().getValues()) {
assertEquals(false, row.get(0).getBooleanValue());
assertEquals(1L, row.get(1).getLongValue());
// TODO(pongad): pagesize = 42

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/test/java/com/google/cloud/bigquery/BigQueryImplTest.java Outdated
for (FieldValueList row : response.getResult().getValues()) {
assertEquals(false, row.get(0).getBooleanValue());
assertEquals(1L, row.get(1).getLongValue());
// TODO(pongad): pagesize = 42

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/test/java/com/google/cloud/bigquery/JobTest.java Outdated
expect(mockOptions.getClock()).andReturn(CurrentMillisClock.getDefaultClock()).times(2);
Job completedJob = expectedJob.toBuilder().setStatus(status).build();
QueryResponse completedQuery = QueryResponse.newBuilder().setJobCompleted(true).build();
// TODO(pongad): remove when https://github.com/googleapis/gax-java/pull/431/ lands.

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/test/java/com/google/cloud/bigquery/TableResultTest.java Outdated
@@ -0,0 +1,103 @@
/*
* Copyright 2015 Google Inc. All Rights Reserved.

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
pr comment
47a55dc
@pongad

pongad commented Jan 9, 2018

Copy link
Copy Markdown
Contributor Author

@tswast PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

tswast
tswast approved these changes Jan 9, 2018
View reviewed changes
@pongad
pongad merged commit 7d144e2 into master Jan 9, 2018
@pongad
pongad deleted the bq-perf branch January 9, 2018 22:39
suztomo pushed a commit that referenced this pull request Mar 9, 2026
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
46f7fe0
…18.0 (#2755)

* chore(deps): update dependency com.google.cloud:libraries-bom to v26.18.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@renovate-bot
deps: update googleapis/java-cloud-bom digest to db4265f (#2755)
afbbb78
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| googleapis/java-cloud-bom | action | digest | `f3c611a` -> `db4265f` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/googleapis/sdk-platform-java).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@release-please @JoeWang1127
chore(main): release 2.40.1 (#2729)
5697127
🤖 I have created a release *beep* *boop*
---


<details><summary>2.40.1</summary>

##
[2.40.1](googleapis/sdk-platform-java@v2.40.0...v2.40.1)
(2024-05-15)


### Bug Fixes

* [common-protos] An existing method `UpdateVehicleLocation` is
([a8848b4](googleapis/sdk-platform-java@a8848b4))
* [common-protos] An existing method `UpdateVehicleLocation` is removed
from service `VehicleService`
([#2751](googleapis/sdk-platform-java#2751))
([a8848b4](googleapis/sdk-platform-java@a8848b4))
* [iam] An existing method `UpdateVehicleLocation` is removed from
([04ab176](googleapis/sdk-platform-java@04ab176))
* [iam] An existing method `UpdateVehicleLocation` is removed from
service `VehicleService`
([#2752](googleapis/sdk-platform-java#2752))
([04ab176](googleapis/sdk-platform-java@04ab176))
* do not populate repo level change while removing library
([#2740](googleapis/sdk-platform-java#2740))
([8d92d16](googleapis/sdk-platform-java@8d92d16))
* only append `.api.grpc` suffix to group id if the artifact id starts
with `proto-` or `grpc-`
([#2731](googleapis/sdk-platform-java#2731))
([b791c84](googleapis/sdk-platform-java@b791c84))
* opentelemetry-bom to be in third-party-dependencies BOM
([#2736](googleapis/sdk-platform-java#2736))
([0700180](googleapis/sdk-platform-java@0700180))
* prepare to generate grafeas
([#2761](googleapis/sdk-platform-java#2761))
([bf26ca1](googleapis/sdk-platform-java@bf26ca1))
* Replace deprecated protobuf methods.
([#2764](googleapis/sdk-platform-java#2764))
([c1e586d](googleapis/sdk-platform-java@c1e586d))


### Dependencies

* update dependency black to v24.4.2
([#2660](googleapis/sdk-platform-java#2660))
([027191f](googleapis/sdk-platform-java@027191f))
* update dependency com.fasterxml.jackson:jackson-bom to v2.17.1
([#2732](googleapis/sdk-platform-java#2732))
([3e94c74](googleapis/sdk-platform-java@3e94c74))
* update dependency com.google.cloud:grpc-gcp to v1.6.0
([#2767](googleapis/sdk-platform-java#2767))
([e360a3d](googleapis/sdk-platform-java@e360a3d))
* update dependency com.google.errorprone:error_prone_annotations to
v2.27.1
([#2708](googleapis/sdk-platform-java#2708))
([5ceb5fa](googleapis/sdk-platform-java@5ceb5fa))
* update dependency com.google.errorprone:error_prone_annotations to
v2.27.1
([#2709](googleapis/sdk-platform-java#2709))
([94df49f](googleapis/sdk-platform-java@94df49f))
* update dependency com.google.oauth-client:google-oauth-client-bom to
v1.36.0
([#2768](googleapis/sdk-platform-java#2768))
([f8500df](googleapis/sdk-platform-java@f8500df))
* update dependency commons-codec:commons-codec to v1.17.0
([#2710](googleapis/sdk-platform-java#2710))
([d1c14e9](googleapis/sdk-platform-java@d1c14e9))
* update dependency jinja2 to v3.1.4 [security]
([#2742](googleapis/sdk-platform-java#2742))
([e0ebded](googleapis/sdk-platform-java@e0ebded))
* update dependency lxml to v5.2.2
([#2766](googleapis/sdk-platform-java#2766))
([99e23f7](googleapis/sdk-platform-java@99e23f7))
* update dependency markupsafe to v2.1.5
([#2657](googleapis/sdk-platform-java#2657))
([834b258](googleapis/sdk-platform-java@834b258))
* update dependency net.bytebuddy:byte-buddy to v1.14.15
([#2753](googleapis/sdk-platform-java#2753))
([7494d67](googleapis/sdk-platform-java@7494d67))
* update dependency platformdirs to v4.2.1
([#2662](googleapis/sdk-platform-java#2662))
([9118e55](googleapis/sdk-platform-java@9118e55))
* update googleapis/java-cloud-bom digest to db4265f
([#2755](googleapis/sdk-platform-java#2755))
([afbbb78](googleapis/sdk-platform-java@afbbb78))
* update googleapis/java-cloud-bom digest to f3c611a
([#2700](googleapis/sdk-platform-java#2700))
([de5a108](googleapis/sdk-platform-java@de5a108))
* update opentelemetry-java monorepo to v1.38.0
([#2769](googleapis/sdk-platform-java#2769))
([74a2451](googleapis/sdk-platform-java@74a2451))
</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>
Co-authored-by: Joe Wang <[email protected]>
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@release-please
chore(main): release 6.56.0 (#2755)
405a634
🤖 I have created a release *beep* *boop*
---


## [6.56.0](https://togithub.com/googleapis/java-spanner/compare/v6.55.0...v6.56.0) (2024-01-05)


### Features

* Add autoscaling config in the instance to support autoscaling in systests ([#2756](https://togithub.com/googleapis/java-spanner/issues/2756)) ([b0c36b5](https://togithub.com/googleapis/java-spanner/commit/b0c36b5148379f5debaf802aed3b0cca723b0a27))
* Add support for Directed Read options ([#2766](https://togithub.com/googleapis/java-spanner/issues/2766)) ([e97d4da](https://togithub.com/googleapis/java-spanner/commit/e97d4dac279b22760290e0aa4bc4816212b9ab31))
* Update OwlBot.yaml file to pull autogenerated executor code ([#2754](https://togithub.com/googleapis/java-spanner/issues/2754)) ([1093ba7](https://togithub.com/googleapis/java-spanner/commit/1093ba77658b3a592dd184284a324c0eea272851))


### Dependencies

* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.21.0 ([#2772](https://togithub.com/googleapis/java-spanner/issues/2772)) ([8616fcf](https://togithub.com/googleapis/java-spanner/commit/8616fcf3c58d042520ed0dd2e6fb37cf3a9654cc))


### Documentation

* Samples and tests for auto-generated createDatabase and createInstance APIs. ([#2764](https://togithub.com/googleapis/java-spanner/issues/2764)) ([36837a4](https://togithub.com/googleapis/java-spanner/commit/36837a49b3b6e8401e956cb92f565af3fcc3e1a2))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
chingor13 pushed a commit that referenced this pull request Mar 30, 2026
@blakeli0
chore: Remove release-please configs from README. (#2755)
0911a22
* chore: Remove release-please configs from README.

* Update .readme-partials.yaml
rahul2393 pushed a commit to akash329d/google-cloud-java that referenced this pull request May 21, 2026
@release-please
chore(main): release 2.71.1-SNAPSHOT (googleapis#2755)
7ac3a48
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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.