Skip to content

Migrate handwritten bigquery storage#8655

Draft
jskeet wants to merge 2 commits into
googleapis:mainfrom
jskeet:migrate-handwritten-bigquery-storage
Draft

Migrate handwritten bigquery storage#8655
jskeet wants to merge 2 commits into
googleapis:mainfrom
jskeet:migrate-handwritten-bigquery-storage

Conversation

@jskeet

@jskeet jskeet commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

(This is clearly nowhere near ready for merging, and was created using a version of librarian with local code.)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request configures and updates the @google-cloud/bigquery-storage package, including updating the README with comprehensive documentation and code samples, adjusting package dependencies, and correcting import paths in generated samples from @google-cloud/storage to @google-cloud/bigquery-storage. Feedback on these changes highlights several issues in package.json, such as an incorrect repository field, a misleading description and keywords, and a non-standard engines.node version prefix. Crucially, the reviewer noted that the auto-generated src/index.ts has overwritten handwritten exports (such as managedwriter and reader), which will break backwards compatibility and cause the README examples to fail.

},
"version": "0.1.0",
"description": "Storage client for Node.js",
"repository": "googleapis/nodejs-storage",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The repository field is set to "googleapis/nodejs-storage", which is the repository for @google-cloud/storage. Since this package is @google-cloud/bigquery-storage and resides in the google-cloud-node monorepo, the repository field should point to googleapis/google-cloud-node with the correct directory, or use the previous repository object.

  "repository": {
    "type": "git",
    "directory": "handwritten/bigquery-storage",
    "url": "https://github.com/googleapis/google-cloud-node.git"
  },

Comment on lines +30 to +31
export {v1, v1alpha, v1beta, v1beta1, v1beta2, BigQueryReadClient, BigQueryWriteClient};
export default {v1, v1alpha, v1beta, v1beta1, v1beta2, BigQueryReadClient, BigQueryWriteClient};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The auto-generated src/index.ts has overwritten the handwritten exports (managedwriter, WriterClient, reader, ReadClient, adapt). This will break backwards compatibility and cause the examples in README.md to fail. Since this file is auto-generated, do not manually edit it; instead, configure the generator/synthtool to preserve these exports or add src/index.ts to the keep list in librarian.yaml.

References
  1. Do not manually edit generated TypeScript client files. Any changes or updates must be made upstream in the generator.

"url": "https://github.com/googleapis/google-cloud-node.git"
},
"version": "0.1.0",
"description": "Storage client for Node.js",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The description is set to "Storage client for Node.js", which is misleading as this is the BigQuery Storage client, not the Cloud Storage client. It should be "BigQuery Storage client for Node.js" or "Client for the BigQuery Storage API".

Suggested change
"description": "Storage client for Node.js",
"description": "Client for the BigQuery Storage API",

Comment on lines +22 to +23
"google storage",
"storage",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The keywords "google storage" and "storage" refer to Google Cloud Storage. They should be updated to "google bigquery storage" and "bigquery storage" to avoid confusion.

Suggested change
"google storage",
"storage",
"google bigquery storage",
"bigquery storage",

"node": ">=18"
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/handwritten/bigquery-storage"
"node": ">=v18"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The v prefix in ">=v18" is non-standard for the engines.node field in package.json and can cause issues with some package managers or semver parsers. It should be ">=18".

Suggested change
"node": ">=v18"
"node": ">=18"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant