Repository navigation
[TEST] Add ArrowIOHelpers_test (UUID v4 + typed Arrow accessors) - #9560
timosachsenberg merged 3 commits into
Conversation
ArrowIOHelpers (new in the 3.6 native-Parquet I/O) had no test, yet its
helpers are used throughout the parquet import/export path:
- generateUuidV4() produces the bundle identifiers, and
- getColumn / getStringValue / getDoubleValue / getFloatValue / getInt32Value
/ getInt64Value / getBoolValue / isNull read typed values out of Arrow arrays.
Adds a class test that:
- validates generateUuidV4() against the UUID v4 spec (canonical 8-4-4-4-12
form, version nibble '4', variant nibble in {8,9,a,b}, all-hex body) and
checks 1000 draws are unique;
- builds small Arrow arrays/tables and verifies each typed accessor returns
the stored value, falls back to the supplied default / empty string on null
cells and on a null array pointer, that isNull reports correctly, and that
getColumn returns the column (and null for a missing optional column).
Registered in executables.cmake (format_executables_list). Part of the
OpenMS 3.6.0 pre-release testing plan (OpenMS#9460). Tests only; no production
code changes.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughA new C++ unit test file ChangesArrowIOHelpers Test Coverage
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-16 00:09:39.573515600 +0000
+++ AUTHORS.new 2026-06-16 00:09:44.796583030 +0000
@@ -23,8 +23,8 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
Adversarial review result: I did not find a blocking issue in this pass. This is a test-only addition for |
# Conflicts: # src/tests/class_tests/openms/CMakeLists.txt
Context
Part of the OpenMS 3.6.0 pre-release testing plan (#9460), §3 (native Parquet I/O).
ArrowIOHelpers— added with the new native-Parquet I/O — had no test file, yet its helpers are used throughout the parquet import/export path:generateUuidV4()produces the bundle identifiers;getColumn/getStringValue/getDoubleValue/getFloatValue/getInt32Value/getInt64Value/getBoolValue/isNullread typed values out of Arrow arrays.Change
Adds a class test that:
generateUuidV4()against the UUID v4 spec — canonical8-4-4-4-12form, version nibble'4', variant nibble in{8,9,a,b}, all-hex body — and checks 1000 draws are unique;isNullreports correctly, and thatgetColumnreturns the column (andnullptrfor a missing optional column).Notes
executables.cmake(format_executables_list).🤖 Generated with Claude Code
Summary by CodeRabbit