Skip to content

Fix update of empty vectors #2285

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 3 commits into from
May 15, 2025
Merged

Conversation

cbellot000
Copy link
Contributor

Empty (nullptr) vectors can be updated to non empty vectors of size 0 when using gRPC.
This can, for example, cause a property field to have a non empty data pointer after accessing the data pointer in python.

closing #2274

@cbellot000 cbellot000 requested a review from a team as a code owner May 14, 2025 08:17
@cbellot000 cbellot000 linked an issue May 14, 2025 that may be closed by this pull request
3 tasks
@cbellot000 cbellot000 requested review from roosre and rafacanton May 14, 2025 08:18
Copy link

codecov bot commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.97%. Comparing base (d1a952e) to head (05bcf16).
Report is 2 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2285      +/-   ##
==========================================
+ Coverage   83.77%   83.97%   +0.20%     
==========================================
  Files          90       90              
  Lines       10399    10399              
==========================================
+ Hits         8712     8733      +21     
+ Misses       1687     1666      -21     

assert np.allclose(field.get_entity_data(1), [0])


@conftest.raises_for_servers_version_under("5.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

@cbellot000 6.0 to also cover 2023R1?

@cbellot000 cbellot000 merged commit 8d8ef82 into master May 15, 2025
41 of 42 checks passed
@cbellot000 cbellot000 deleted the bug/empty_prop_field_data_pointer branch May 15, 2025 08:00
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.

Invalid vector subscript after DPF Vector performance improvement
2 participants