Skip to content

fix(go): fix type writing and reading logic in slice #2427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

lzaeh
Copy link
Contributor

@lzaeh lzaeh commented Jul 18, 2025

What does this PR do?

This PR investigates and fixes the issue described in #2423.

  • In the slice serializer, the type marker should be written and read using the correct functions, instead of using typeId directly. Otherwise, struct types may lose type information during serialization.

  • A test case from issue [Golang] RegisterTagType array of structs #2423 has been added to the language-specific test suite.

In PR #2339 , the dynamic type ID allocation mechanism was temporarily removed to improve cross-language compatibility. However, as mentioned in both that PR and this one, the following problems still remain:

I'm currently working on fixing the above issues in my spare time.
Apologies for the delay.

Related issues

close #2423

Does this PR introduce any user-facing change?

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

@lzaeh lzaeh requested a review from chaokunyang as a code owner July 18, 2025 15:15
@pandalee99 pandalee99 self-requested a review July 18, 2025 15:29
Copy link
Contributor

@pandalee99 pandalee99 left a comment

Choose a reason for hiding this comment

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

LGTM

@pandalee99 pandalee99 merged commit dc52731 into apache:main Jul 18, 2025
53 checks passed
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.

[Golang] RegisterTagType array of structs
2 participants