Skip to content
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

[python] Validate byteorder on fastercsx argument arrays #3508

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

bkmartinjr
Copy link
Member

Issue and/or context:

Fastercsx python bindings did not verify that argument arrays had native byteorder. This could result in incorrect conversion from COO to CSx in some cases.

Add explicit check and test case.

[sc-61252]

Copy link

codecov bot commented Jan 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.32%. Comparing base (11ee34c) to head (8537759).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3508      +/-   ##
==========================================
+ Coverage   86.27%   86.32%   +0.04%     
==========================================
  Files          55       55              
  Lines        6340     6340              
==========================================
+ Hits         5470     5473       +3     
+ Misses        870      867       -3     
Flag Coverage Δ
python 86.32% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
python_api 86.32% <ø> (+0.04%) ⬆️
libtiledbsoma ∅ <ø> (∅)

@bkmartinjr bkmartinjr marked this pull request as ready for review January 1, 2025 21:43
@bkmartinjr bkmartinjr requested review from johnkerl and nguyenv January 1, 2025 21:43
@bkmartinjr bkmartinjr merged commit fbeee6f into main Jan 2, 2025
11 checks passed
@bkmartinjr bkmartinjr deleted the bkmartinjr/fastercsx-byteorder branch January 2, 2025 15:48
@johnkerl johnkerl changed the title [python] validate byteorder on fastercsx argument arrays [python] Validate byteorder on fastercsx argument arrays Jan 3, 2025
github-actions bot pushed a commit that referenced this pull request Jan 7, 2025
johnkerl pushed a commit that referenced this pull request Jan 10, 2025
johnkerl added a commit that referenced this pull request Jan 10, 2025
…gument arrays (#3521)

* validate byteorder on argument arrays (#3508)

* Use byte-order detection without std::endian for C++17

* work around fiddly include-path issues with trying to use `fmt::format`

---------

Co-authored-by: Bruce Martin <[email protected]>
Co-authored-by: John Kerl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants