Skip to content

Conversation

@hectorcast-db
Copy link
Contributor

@hectorcast-db hectorcast-db commented Oct 27, 2025

What changes are proposed in this pull request?

Add Support for Field Mask in query parameters.
We are introducing a rich type for FieldMask. This PR ensures that FieldMasks are serialized correctly when used as Query parameters (which is the case for all non batch operations).

Support for FieldMask is added as part of generation framework in a separate PR.

More information about field mask: https://developers.google.com/workspace/slides/api/guides/field-masks

Other Well Known types are not currently supported as query parameters.
Tests are being generated, so they are not part of this PR.

How is this tested?

Chicken and egg problem. We have 3 components, all of which are needed to test this:

  1. New structures with the new types.
  2. Generated tests.
  3. The change in this PR.
    Components 1 and 2 are generated and part of another PR. We cannot test this without those components. But at the same time, those components need this change or the generated tests will fail.
    I generated locally the SDK with all 3 changes at the same time and run make test (diff includes many changes. Releavant changes in HttpPathTest.java):

https://github.com/databricks/databricks-sdk-java/pull/536/files#diff-e0a2f237fe2b016080aeb672d5793f68486a7b897c7252480c7c00a76f08796f

NO_CHANGELOG=true

@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 535
  • Commit SHA: 8ccc805607f55227db59a3a23e24a4e780cedfab

Checks will be approved automatically on success.

Copy link

@Tejas-Kochar Tejas-Kochar left a comment

Choose a reason for hiding this comment

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

LGTM

@hectorcast-db hectorcast-db added this pull request to the merge queue Nov 4, 2025
Merged via the queue into main with commit 79d6604 Nov 4, 2025
16 of 17 checks passed
@hectorcast-db hectorcast-db deleted the hectorcast-db/path-param-fieldmask branch November 4, 2025 15:46
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.

4 participants