Skip to content

demo: regenerated biglake client library#12968

Closed
diegomarquezp wants to merge 4 commits intogoogleapis:mainfrom
diegomarquezp:demo-regenerated-biglake
Closed

demo: regenerated biglake client library#12968
diegomarquezp wants to merge 4 commits intogoogleapis:mainfrom
diegomarquezp:demo-regenerated-biglake

Conversation

@diegomarquezp
Copy link
Copy Markdown
Contributor

@diegomarquezp diegomarquezp commented Apr 30, 2026

This is a generated demonstration PR corresponding to the changes on branch biglake-p1 (#12940). It validates output changes for client library stub code generated for java-biglake module.

@diegomarquezp diegomarquezp requested a review from a team as a code owner April 30, 2026 14:48
Copy link
Copy Markdown
Contributor

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

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 updates query parameter names in the BigLake service stubs, shifting from camelCase to snake_case and kebab-case. Feedback highlights that these changes introduce inconsistencies across the library and deviate from standard Google Cloud API naming conventions; it is recommended to revert to camelCase for uniformity.

fields, "hiveCatalogId", request.getHiveCatalogId());
serializer.putQueryParam(
fields, "primaryLocation", request.getPrimaryLocation());
fields, "primary_location", request.getPrimaryLocation());
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 query parameter name has been changed from primaryLocation to primary_location. While breaking changes are permissible for unreleased APIs, this snake_case naming is inconsistent with the kebab-case naming (e.g., page-size) introduced in HttpJsonIcebergCatalogServiceStub.java. Standardizing on camelCase is recommended for Google Cloud APIs.

Suggested change
fields, "primary_location", request.getPrimaryLocation());
fields, "primaryLocation", request.getPrimaryLocation());
References
  1. Breaking changes to public APIs are permissible if the API has not yet been released.

Comment on lines +117 to +118
serializer.putQueryParam(fields, "page-size", request.getPageSize());
serializer.putQueryParam(fields, "page-token", request.getPageToken());
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 query parameters page-size and page-token have been changed to kebab-case, which is non-standard for Google Cloud APIs and inconsistent with the snake_case used in HttpJsonHiveMetastoreServiceStub.java. While breaking changes are permissible for unreleased APIs, it is recommended to use camelCase for consistency and adherence to standard API patterns.

Suggested change
serializer.putQueryParam(fields, "page-size", request.getPageSize());
serializer.putQueryParam(fields, "page-token", request.getPageToken());
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
References
  1. Breaking changes to public APIs are permissible if the API has not yet been released.

ProtoRestSerializer.create();
serializer.putQueryParam(
fields, "icebergCatalogId", request.getIcebergCatalogId());
fields, "iceberg-catalog-id", request.getIcebergCatalogId());
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 query parameter iceberg-catalog-id uses kebab-case, which is non-standard for Google Cloud REST APIs and inconsistent with the snake_case used elsewhere in the library. Consider using camelCase for consistency.

Suggested change
fields, "iceberg-catalog-id", request.getIcebergCatalogId());
fields, "icebergCatalogId", request.getIcebergCatalogId());
References
  1. Breaking changes to public APIs are permissible if the API has not yet been released.

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