Skip to content

Custom serializers for Google Protobuf Types#467

Closed
hectorcast-db wants to merge 8 commits into
mainfrom
hectorcast-db/proto-utils
Closed

Custom serializers for Google Protobuf Types#467
hectorcast-db wants to merge 8 commits into
mainfrom
hectorcast-db/proto-utils

Conversation

@hectorcast-db

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

Copy link
Copy Markdown
Contributor

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

@parthban-db parthban-db 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.

Can we add unit tests for these classes?

@github-actions

Copy link
Copy Markdown
Contributor

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.

@parthban-db parthban-db 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.

LGTM modulo a small question.


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

@parthban-db parthban-db Jun 20, 2025

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.

Do Java tests comments also end with a period?

Copy link
Copy Markdown
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
Copy Markdown
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