Skip to content

Conversation

hectorcast-db
Copy link
Contributor

@hectorcast-db hectorcast-db commented Jun 19, 2025

What changes are proposed in this pull request?

Custom serializers for Google Protobuf Types. This is required because Jackson by default does not consider that such objects have a special serialization.

How is this tested?

Tested as part of supporting well known types
https://github.com/databricks/databricks-sdk-java/pull/459/files#diff-c3aa175ce608f5cd289331f74de4e21ddcd56fc195ec92b028f2e7d4a6d721e6

NO_CHANGELOG=true

@hectorcast-db hectorcast-db changed the title Use Proto Serialization when serializing Google Protobuf Types Custom serializers for Google Protobuf Types Jun 19, 2025
Copy link
Contributor

@parthban-db parthban-db left a comment

Choose a reason for hiding this comment

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

Can we add unit tests for these classes?

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: 467
  • Commit SHA: 8ac621fc37d80d99489f7a5aacc8b14f78275eb9

Checks will be approved automatically on success.

Copy link
Contributor

@parthban-db parthban-db left a comment

Choose a reason for hiding this comment

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

LGTM modulo a small question.


static Stream<Arguments> durationDeserializationTestCases() {
return Stream.of(
// Duration with seconds and nanos
Copy link
Contributor

@parthban-db parthban-db Jun 20, 2025

Choose a reason for hiding this comment

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

Do Java tests comments also end with a period?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If its a full sentence, but not for short phrases.

@hectorcast-db
Copy link
Contributor Author

jenkins merge

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.

2 participants