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: remove automatic `insertId` generation & allow specifying raw format by stephenplusplus · Pull Request #1068 · googleapis/google-cloud-node

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

Closes #1066

Breaking change included!

insertId is no longer defaulted to a value.

@vladmiller - Please take a look. I just wanted to change a few things (mostly style things) and also remove the default insertId generation. The CLA bot will say something about confirming you are the original author of this code. If you're okay with it, just leave a note that it's okay.

Sorry, something went wrong.

Uh oh!

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

All reactions
@vladmiller @stephenplusplus
Added ability to pass "raw" object and additional options
b9e5406
@stephenplusplus stephenplusplus added the api: bigquery Issues related to the BigQuery API. label Jan 18, 2016
@googlebot

googlebot commented Jan 18, 2016

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

All reactions

Sorry, something went wrong.

Uh oh!

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

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Jan 18, 2016
@vladmiller

vladmiller commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

@stephenplusplus I think that we have to leave autogenerated insertID untouched s.t. old apps won't break.

All reactions

Sorry, something went wrong.

Uh oh!

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

@vladmiller

vladmiller commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

Okay Google, contribute my commits.

All reactions

Sorry, something went wrong.

Uh oh!

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

@vladmiller

vladmiller commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

Okay Google, I agree to contribute my commits.

All reactions

Sorry, something went wrong.

Uh oh!

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

@vladmiller

vladmiller commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

Google set cla yes

All reactions

Sorry, something went wrong.

Uh oh!

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

@stephenplusplus

stephenplusplus commented Jan 18, 2016

Copy link
Copy Markdown
Contributor Author

We will just bump the minor version to follow semver rules for the breaking change (pre-1.0, a minor bump is equivalent to a post-1.0 major bump).

All reactions

Sorry, something went wrong.

Uh oh!

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

@stephenplusplus stephenplusplus added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Jan 18, 2016
@stephenplusplus

stephenplusplus commented Jan 18, 2016

Copy link
Copy Markdown
Contributor Author

Thanks @vladmiller!

All reactions

Sorry, something went wrong.

Uh oh!

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

@vladmiller

vladmiller commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

@stephenplusplus any estimate on when package becomes available in npm?

All reactions

Sorry, something went wrong.

Uh oh!

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

@stephenplusplus

stephenplusplus commented Jan 18, 2016

Copy link
Copy Markdown
Contributor Author

We're due for a release soon. Maybe I can get one out this week. In the meantime, you can use master:

$ npm install --save googlecloudplatform/gcloud-node
All reactions

Sorry, something went wrong.

Uh oh!

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

@vladmiller

vladmiller commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

@stephenplusplus Thank you!

All reactions

Sorry, something went wrong.

Uh oh!

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

@vladmiller

vladmiller commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

@stephenplusplus do you know when this PR will be merged?

All reactions

Sorry, something went wrong.

Uh oh!

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

@stephenplusplus

stephenplusplus commented Jan 18, 2016

Copy link
Copy Markdown
Contributor Author

Just needs a review from @callmehiphop.

This should work if you want to install from my branch for now:

$ npm install --save stephenplusplus/gcloud-node#vlad--patch-1
All reactions

Sorry, something went wrong.

Uh oh!

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

@callmehiphop

callmehiphop commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

@stephenplusplus Looks good to me!

All reactions

Sorry, something went wrong.

Uh oh!

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

stephenplusplus added a commit that referenced this pull request Jan 19, 2016
@stephenplusplus
Merge pull request #1068 from stephenplusplus/vlad--patch-1
4d9f37c
bigquery: remove automatic `insertId` generation & allow specifying raw format
@stephenplusplus
stephenplusplus merged commit 4d9f37c into googleapis:master Jan 19, 2016
@callmehiphop callmehiphop mentioned this pull request Jan 19, 2016
bigquery table.insert fails for identical rows #1041
Closed
@jgeewax

jgeewax commented May 7, 2017 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

@stephenplusplus I'm confused by this one. Why can't we allow control of the insert ID via overriding without keeping the auto-generation?

The request in #1066 was about being able to manually specify an insert ID, so adding the raw thing works, but taking out the other part kind of screws over the people who don't necessarily care about what value the ID is so long as it is unique (effectively saying "if an API request is one I've already sent, treat it as a duplicate")

The request in #1041 is about adding multiple of the same rows in parallel (aka, same timestamp, same data), so I can see how a hash wouldn't make sense there.

What we're trying to control for is:

  • Insert rows r
  • Request times out (maybe network cable was yanked, maybe GCP had an error)
  • It's impossible to know for sure whether this batch of rows was added
  • Retry inserting rows r

I'd argue that this is not for de-duping your data (aka, only inserting unique rows), and it is not for recovering after a client-side failure, but only about server errors and auto-retries. If you want uniqueness constraints or transactions to avoid client-side problems, you should use a different storage system or de-duplicate, save to GCS, and bulk load the data afterwards.

Can we re-open the discussion about using a UUID-1 (or similar) to generate insert ID values when none are provided (and which are only used when we automatically retry a failed request) ?

All reactions

Sorry, something went wrong.

Uh oh!

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

@stephenplusplus

stephenplusplus commented May 7, 2017

Copy link
Copy Markdown
Contributor Author

Sure, let's move the convo back to the now re-opened #1041.

All reactions

Sorry, something went wrong.

Uh oh!

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

@sofisl sofisl mentioned this pull request Jan 17, 2023
migrate code from googleapis/nodejs-vision #3860
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Jan 17, 2023
@renovate-bot
chore(deps): update dependency @types/mocha to v10 (#1068)
f0e4a1b
miguelvelezsa pushed a commit that referenced this pull request Jan 28, 2026
@release-please
chore(main): release 7.3.0 (#1068)
1a2c55e
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 5, 2026
@release-please
chore(main): release 7.3.0 (#1068)
623cb72
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 17, 2026
@release-please
chore(main): release 7.3.0 (#1068)
2e02039
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 24, 2026
@schmidt-sebastian Brian Chen @wu-hui
feat!: Drop Node 8 support (#1006)
2500a99
* fix!: mark v1beta1 client as deprecated (#937)

* feat!: use QueryDocumentSnapshot in FirestoreDataConverter (#965)

* deps: update to gts 2.x (#1013)

* chore!: update settings for Node 10 (#1019)

* deps: drop through2 (#1014)

* feat: support BigInt (#1016)

* fix: make update.sh work on Linux (#1043)

* fix: only use BigInt in BigInt system test (#1044)

* fix: make pbjs compile admin proto again (#1045)

* Add BulkWriter (#1055)

* docs: Add documentation for FirestoreDataConverter (#1059)

* chore: enforce return types (#1065)

* fix: add generic to Firestore.getAll() (#1066)

* chore: remove internal WriteOp (#1067)

* chore: add linter checks for it|describe.only (#1068)

* fix: handle terminate in BulkWriter (#1070)

* chore: run template copying last in synthtool (#1071)

* feat: Firestore Bundles implementation (#1078)

* feat: add support for set() with SetOptions when using FirestoreDataConverter (#1087)

* feat: Add totalDocuments and totalBytes to bundle metadata. (#1085)

* feat: Add totalDocuments and totalBytes to bundle metadata.

* fix: Better comment

* fix: Better testing.

* fix: Improve metadata testing.

* fix: incomplete expect in rate-limiter test (#1092)

* Remove BatchWrite proto, fix conformance tests

* chore: use public API types internally (#1100)

* feat: add Partition and BatchWrite protos (#1110)

* fix: remove GCF transaction fallback (#1112)

* fix: add BulkWriter integration tests, java backport changes, delete fix (#1117)

* chore: merge master (#1218)

* chore: add eslint check for console.log statements (#1229)

* fix: another attempt at fixing the flaky BulkWriter test (#1228)

* Fix comment

* Renames

* Test fix

* Fix unit tests

Co-authored-by: Brian Chen <[email protected]>
Co-authored-by: wu-hui <[email protected]>
sofisl pushed a commit that referenced this pull request Feb 25, 2026
@jkwlui @yoshi-automation
WhiteSource Renovate @laljikanjareeya Benjamin E. Coe @JustinBeckwith
feat(v4): support v4 signed URL for GA (#1072)
9b6462c
* feat(signed-url): support list bucket (#1051)

* refactor signed url logic into its own class

* fix the test

* refactor tests to test/signer.ts

* npm run fix

* chore: generate synth.metadata

* allow bucket-operation signed url

* remove unused types

* support bucket operations

* refactor signer to not use promisify

* fix node-8 test

* add test for generation parameter

* test: add list bucket signed url system-test

* npm run fix

* fix bucket getSignedUrl docs

* chore(deps): update dependency @types/mocha to v7

* fix: unhandled promise rejection warning in samples (#1056)

* fix: unhandledPromiseRejectionWarning in samples

* fix: lint issue

* fix: lint issue

Co-authored-by: Benjamin E. Coe <[email protected]>

* docs(readme): log errors in sample

* chore: skip img.shields.io in docs test

Co-authored-by: Yoshi Automation Bot <[email protected]>
Co-authored-by: WhiteSource Renovate <[email protected]>
Co-authored-by: Lalji Kanjareeya <[email protected]>
Co-authored-by: Benjamin E. Coe <[email protected]>
Co-authored-by: Justin Beckwith <[email protected]>

* test(signed-url): update conformance test json to conformance-test@9f134282 (#1066)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* pass queryParameters to conformance test

* conformance tests ignore query parameter ordering in URL

* npm run fix

* parse sha256 option

* revert debug

* fix(signed-url): trailing `/` after path before query params (#1068)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* fix(signed-url): trailing `/` after path before query params

* fix(signed-url): fix query parameter signing (#1069)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* pass queryParameters to conformance test

* conformance tests ignore query parameter ordering in URL

* npm run fix

* parse sha256 option

* revert debug

* fix(signed-url): include custom query parameters in signature calculation

* query param wip

* fix queryParam sorting

* test: query params are sorted

* remove unused imports

* npm run fix

* refactor

* rename QueryParams to just Query

* feat(signed-url): support virtual hosted style url (#1067)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* vhost

* unit tests

* npm run fix

* docs: document urlStyle option for Bucket

* test: add system-test to exercise virtual-hosted url

* pass queryParameters to conformance test

* conformance tests ignore query parameter ordering in URL

* npm run fix

* parse sha256 option

* revert debug

* restyle option as virtualHostedStyle as a boolean

* npm run fix

* docs: virtualHostedStyle option defaults to false

* docs: fix path style example

* fix: resource path beginning with /

* feat(signed-url): support SHA256 for signed payloads (#1070)

* feat(signed-url): support SHA256 for signed payloads

* add unit test

* remove junk import

* newline

* document contentMd5 option

* do not provide contentSha256 option, instead, detect user provided header

* npm run fix

* fix system-test

* test: expand URLSigner test

* fix(refactor): rename UrlSigner to URLSigner

* localize URLSigner unit tests

* address PR comments

* npm run fix

Co-authored-by: Yoshi Automation Bot <[email protected]>
Co-authored-by: WhiteSource Renovate <[email protected]>
Co-authored-by: Lalji Kanjareeya <[email protected]>
Co-authored-by: Benjamin E. Coe <[email protected]>
Co-authored-by: Justin Beckwith <[email protected]>
GautamSharda pushed a commit that referenced this pull request Mar 5, 2026
@gcf-owl-bot
chore: new owl bot post processor docker image (#1068)
f2d38f4
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:b94b09fb24bf804090b8cc60ee726ca161d5e5915151e417f8ef5d8bcfe73cbc
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
@jkwlui @yoshi-automation
WhiteSource Renovate @laljikanjareeya Benjamin E. Coe @JustinBeckwith
feat(v4): support v4 signed URL for GA (googleapis#1072)
1d7c64a
* feat(signed-url): support list bucket (googleapis#1051)

* refactor signed url logic into its own class

* fix the test

* refactor tests to test/signer.ts

* npm run fix

* chore: generate synth.metadata

* allow bucket-operation signed url

* remove unused types

* support bucket operations

* refactor signer to not use promisify

* fix node-8 test

* add test for generation parameter

* test: add list bucket signed url system-test

* npm run fix

* fix bucket getSignedUrl docs

* chore(deps): update dependency @types/mocha to v7

* fix: unhandled promise rejection warning in samples (googleapis#1056)

* fix: unhandledPromiseRejectionWarning in samples

* fix: lint issue

* fix: lint issue

Co-authored-by: Benjamin E. Coe <[email protected]>

* docs(readme): log errors in sample

* chore: skip img.shields.io in docs test

Co-authored-by: Yoshi Automation Bot <[email protected]>
Co-authored-by: WhiteSource Renovate <[email protected]>
Co-authored-by: Lalji Kanjareeya <[email protected]>
Co-authored-by: Benjamin E. Coe <[email protected]>
Co-authored-by: Justin Beckwith <[email protected]>

* test(signed-url): update conformance test json to conformance-test@9f134282 (googleapis#1066)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* pass queryParameters to conformance test

* conformance tests ignore query parameter ordering in URL

* npm run fix

* parse sha256 option

* revert debug

* fix(signed-url): trailing `/` after path before query params (googleapis#1068)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* fix(signed-url): trailing `/` after path before query params

* fix(signed-url): fix query parameter signing (googleapis#1069)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* pass queryParameters to conformance test

* conformance tests ignore query parameter ordering in URL

* npm run fix

* parse sha256 option

* revert debug

* fix(signed-url): include custom query parameters in signature calculation

* query param wip

* fix queryParam sorting

* test: query params are sorted

* remove unused imports

* npm run fix

* refactor

* rename QueryParams to just Query

* feat(signed-url): support virtual hosted style url (googleapis#1067)

* update conformance test json to conformance-test@9f134282

* parse updated conformance-test format

* npm run fix

* vhost

* unit tests

* npm run fix

* docs: document urlStyle option for Bucket

* test: add system-test to exercise virtual-hosted url

* pass queryParameters to conformance test

* conformance tests ignore query parameter ordering in URL

* npm run fix

* parse sha256 option

* revert debug

* restyle option as virtualHostedStyle as a boolean

* npm run fix

* docs: virtualHostedStyle option defaults to false

* docs: fix path style example

* fix: resource path beginning with /

* feat(signed-url): support SHA256 for signed payloads (googleapis#1070)

* feat(signed-url): support SHA256 for signed payloads

* add unit test

* remove junk import

* newline

* document contentMd5 option

* do not provide contentSha256 option, instead, detect user provided header

* npm run fix

* fix system-test

* test: expand URLSigner test

* fix(refactor): rename UrlSigner to URLSigner

* localize URLSigner unit tests

* address PR comments

* npm run fix

Co-authored-by: Yoshi Automation Bot <[email protected]>
Co-authored-by: WhiteSource Renovate <[email protected]>
Co-authored-by: Lalji Kanjareeya <[email protected]>
Co-authored-by: Benjamin E. Coe <[email protected]>
Co-authored-by: Justin Beckwith <[email protected]>
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
@igorbernstein2
feat: send retry attempt header to ease debugging (#1068)
1548443
* feat: send retry attempt header to ease debugging

* style

* lint
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
@release-please
chore(main): release 3.11.0 (#1069)
9dabd0f
🤖 I have created a release *beep* *boop*
---


## [3.11.0](googleapis/nodejs-bigtable@v3.10.0...v3.11.0) (2022-04-13)


### Features

* send retry attempt header to ease debugging ([#1068](googleapis/nodejs-bigtable#1068)) ([37f9b3c](googleapis/nodejs-bigtable@37f9b3c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
@igorbernstein2 @GautamSharda
feat: send retry attempt header to ease debugging (#1068)
b68f849
* feat: send retry attempt header to ease debugging

* style

* lint
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
@release-please @GautamSharda
chore(main): release 3.11.0 (#1069)
4daa2cf
🤖 I have created a release *beep* *boop*
---


## [3.11.0](googleapis/nodejs-bigtable@v3.10.0...v3.11.0) (2022-04-13)


### Features

* send retry attempt header to ease debugging ([#1068](googleapis/nodejs-bigtable#1068)) ([37f9b3c](googleapis/nodejs-bigtable@37f9b3c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@release-please release-please Bot mentioned this pull request Mar 26, 2026
chore(main): release bigtable 3.2.3 #7899
Closed
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
@igorbernstein2 @shivanee-p
feat: send retry attempt header to ease debugging (#1068)
5276d84
* feat: send retry attempt header to ease debugging

* style

* lint
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
@release-please @shivanee-p
chore(main): release 3.11.0 (#1069)
7972579
🤖 I have created a release *beep* *boop*
---


## [3.11.0](googleapis/nodejs-bigtable@v3.10.0...v3.11.0) (2022-04-13)


### Features

* send retry attempt header to ease debugging ([#1068](googleapis/nodejs-bigtable#1068)) ([37f9b3c](googleapis/nodejs-bigtable@37f9b3c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 5, 2026
@igorbernstein2 @thiyaguk09
feat: send retry attempt header to ease debugging (googleapis#1068)
9730fa9
* feat: send retry attempt header to ease debugging

* style

* lint
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 5, 2026
@release-please @thiyaguk09
chore(main): release 3.11.0 (googleapis#1069)
5828fd8
🤖 I have created a release *beep* *boop*
---


## [3.11.0](googleapis/nodejs-bigtable@v3.10.0...v3.11.0) (2022-04-13)


### Features

* send retry attempt header to ease debugging ([googleapis#1068](googleapis/nodejs-bigtable#1068)) ([37f9b3c](googleapis/nodejs-bigtable@37f9b3c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

api: bigquery Issues related to the BigQuery API. 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.

5 participants

@stephenplusplus @googlebot @vladmiller @callmehiphop @jgeewax
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.