[
https://issues.apache.org/jira/browse/TINKERPOP-3305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18145911#comment-18145911
]
ASF GitHub Bot commented on TINKERPOP-3305:
-------------------------------------------
Iryna-Kahamlyk opened a new pull request, #3816:
URL: https://github.com/apache/tinkerpop/pull/3816
JIRA: https://issues.apache.org/jira/browse/TINKERPOP-3305
`CustomTypeWriter` in gremlin-go took the unexported
`*graphBinaryTypeSerializer` as its third parameter, so code outside the driver
package could not implement it.
The parameter is now an exported `GraphBinaryWriter` interface with `Write`
and `WriteValue`, which lets custom writers serialize nested values with
standard GraphBinary encoding. Added an example in an external test package so
the compiler checks that the API is usable outside the driver, along with unit
tests for the serialized output and error propagation.
When merging to `master`, keep master's version. Master has no
`CustomTypeWriter`; it was replaced by Provider Defined Types.
> CustomTypeWriter API references unexported type
> -----------------------------------------------
>
> Key: TINKERPOP-3305
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3305
> Project: TinkerPop
> Issue Type: Bug
> Components: go
> Affects Versions: 3.8.2
> Reporter: Ken Hu
> Priority: Blocker
>
> The {{CustomTypeWriter}} in gremlin-go
> https://github.com/apache/tinkerpop/blob/b82624473beaa0c36b1b0e38e77f18b300b3422e/gremlin-go/driver/serializer.go#L50
> uses *graphBinaryTypeSerializer which isn't exported.
> Also noticed this isn't in {{master}} branch so confirm if that is correct
> when merging up from {{3.8-dev}}.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)