Skip to content

chore: cherry pick commits for 0.11.0 #2309

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

Conversation

chaokunyang
Copy link
Collaborator

What does this PR do?

Related issues

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

stevenschlansker and others added 3 commits June 7, 2025 16:22
…e of records (apache#2304)

## What does this PR do?

Row encoder synthesized interfaces now work inside enclosing record
classes.
The previous logic was over-complicated to work around the overly
aggressive expanding of types. With the fix in apache#2265 this is no longer
necessary and we can simplify the logic around detecting interfaces to
synthesize, in a way that better supports nesting too.
…orrectly (apache#2306)

## What does this PR do?

fix incorrect handling of lazy-read `(Optional) null` values
…event collisions (apache#2308)

## What does this PR do?

This PR fixes a `ClassCastException` during deserialization caused by an
incorrect `MetaStringBytes` being retrieved from the cache. The previous
cache key `(long, long)` in `MetaStringResolver` (for small meta
strings) didn't include the string's `encoding` byte, leading to
collisions when different strings (e.g., "aclass" vs "Aclass") hashed to
the same two longs.

**Changes:**

1. **Introduced `LongLongByteMap`:** A new map using a `(long k1, long
k2, byte k3)` key.
2. **Updated `MetaStringResolver`:** Modified relevant methods (e.g.,
`createSmallMetaStringBytes`, `readSmallMetaStringBytes`) to use
`LongLongByteMap`, incorporating the `encoding` byte into the cache key
for small meta strings.
3. **Renamed Test:** `LongLongMapTest.java` renamed to
`LongLongByteMapTest.java` and updated to test the new map.

## Related issues

- apache#2307 

## Does this PR introduce any user-facing change?

<!--
If any user-facing interface changes, please [open an
issue](https://github.com/apache/fory/issues/new/choose) describing the
need to do so and update the document if necessary.
-->

- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?

## Benchmark

<!--
When the PR has an impact on performance (if you don't know whether the
PR will have an impact on performance, you can submit the PR first, and
if it will have impact on performance, the code reviewer will explain
it), be sure to attach a benchmark data here.
-->
@chaokunyang chaokunyang merged commit d9e0ed3 into apache:releases-0.11.0 Jun 7, 2025
48 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.

4 participants