Skip to content

fix(core): create precision time protobuf#742

Merged
bestbeforetoday merged 1 commit intosubstrait-io:mainfrom
bestbeforetoday:precisiontime-proto
Mar 10, 2026
Merged

fix(core): create precision time protobuf#742
bestbeforetoday merged 1 commit intosubstrait-io:mainfrom
bestbeforetoday:precisiontime-proto

Conversation

@bestbeforetoday
Copy link
Member

The io.substrait.type.proto.TypeProtoConverter.Types#wrap(Object) method was missing a branch to handle PrecisionTime. This caused an UnsupportedOperationException to the be thrown when creating a PrecisionTime protobuf object.

This change adds the missing branch to the wrap method, and extends type pojo/proto conversion tests to include PrecisionTime.

The io.substrait.type.proto.TypeProtoConverter.Types#wrap(Object) method
was missing a branch to handle PrecisionTime. This caused an
UnsupportedOperationException to the be thrown when creating a
PrecisionTime protobuf object.

This change adds the missing branch to the wrap method, and extends type
pojo/proto conversion tests to include PrecisionTime.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review March 10, 2026 17:06
Copy link
Member

@nielspardon nielspardon left a comment

Choose a reason for hiding this comment

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

LGTM

@bestbeforetoday bestbeforetoday merged commit 824fc58 into substrait-io:main Mar 10, 2026
12 checks passed
@bestbeforetoday bestbeforetoday deleted the precisiontime-proto branch March 10, 2026 17:21
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