Skip to content

feat: centralize Arrow/Parquet schemas in ArrowSchemaRegistry - #8970

Merged
timosachsenberg merged 21 commits into
developfrom
feature/arrow-schema-registry
Mar 23, 2026
Merged

timosachsenberg merged 21 commits into
developfrom
feature/arrow-schema-registry

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Mar 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Introduces ArrowSchemaRegistry.h/.cpp with 18 schema structs as a single source of truth for all Arrow/Parquet column definitions
  • Each struct owns its column name constants (static constexpr const char*), nested type helpers, and a schema() factory returning the canonical arrow::Schema
  • Adds ArrowSchemaValidation::validate() with Strict (write path) and Subset (read path) modes
  • Replaces all inline arrow::schema({...}) construction across 10 IO source files with registry calls
  • Replaces scattered string literal column names with schema constants
  • Exposes all 18 schemas to Python via nanobind in _arrow_zerocopy module
  • Updates Python addon files to use registry constants (with graceful fallback)

Schemas covered

General formats: ProteinSchema (10), ProteinGroupSchema (8), SearchParamsSchema (26), FeatureSchema (17), ConsensusFeatureSchema (9), ConsensusFeatureExportSchema (33), PSMSchema (25), SpectraLongSchema (12), SpectraSemiWideSchema (12), ChromatogramSchema (6)

OpenSWATH: OSWPrecursorSchema (10), OSWTransitionSchema (13), OSWFeatureSchema (65), OSWFeatureTransitionSchema (44), OSWFeaturePrecursorSchema (5), OSWRunSchema (2), XICSchema (18), XIMSchema (21)

Validation strategy

  • Write path: Strict mode (exact match) catches developer bugs — adding/removing/retyping a column without updating the schema is caught at write time
  • Read path: Subset mode (all present fields must match, missing fields allowed) preserves forward compatibility with existing readers that accept partial tables

Test plan

  • All 12 C++ Parquet/Arrow tests pass (ArrowSchemaRegistry_test + all existing IO tests)
  • No inline arrow::schema({ remains in any IO source file (only in ArrowSchemaRegistry.cpp)
  • Python _arrow_zerocopy module exposes all 18 schemas with correct field counts
  • Python validation (validate_arrow_schema) works in both strict and subset modes
  • CI passes

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]

Summary by CodeRabbit

  • New Features

    • Centralized Arrow/Parquet schema registry and validation (strict/subset) for imports/exports; registry-provided column constants used across proteins, PSMs, features, spectra, chromatograms, XIC/XIM and OSW data.
    • New ParquetConverter tool to convert feature/consensus maps between XML and Parquet directories.
  • Bug Fixes

    • Runtime schema checks now halt on mismatch and clean up partial outputs, giving clearer validation errors.
  • Tests

    • Extensive tests covering schema definitions, strict/subset validation and conformance for all schema helpers.

timosachsenberg and others added 15 commits March 22, 2026 12:17
Centralize all 18 Arrow/Parquet schema definitions into a single
ArrowSchemaRegistry with validation (strict on write, subset on read).
Covers general format schemas (Protein, Feature, PSM, Spectra, etc.)
and OpenSWATH schemas (OSW features, transitions, XIC, XIM).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add skeleton header, source, and test files for the ArrowSchemaRegistry,
which will centralize Arrow/Parquet schema definitions. Register new files
in sources.cmake and executables.cmake under the WITH_PARQUET guards.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…t modes

Add validation logic that checks Arrow table schemas against expected schemas:
- Strict mode: exact match on field count, names, types, and nullability
- Subset mode: table fields must be a subset of expected schema with matching types
- Metadata is ignored during validation (only structural checks)

Also adds Arrow link libraries for ArrowSchemaRegistry_test in CMakeLists.txt
and 10 comprehensive test cases covering both modes.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…iWideSchema, ChromatogramSchema

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…rSchema, OSWRunSchema

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replace inline schema construction with registry calls (ProteinSchema,
ProteinGroupSchema, SearchParamsSchema), replace string literals with
schema constants, and add schema validation on both write and read paths.
Also fix timestamp precision compatibility in validation to handle
Parquet round-trip promotion from timestamp[s] to timestamp[ms].

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…apArrowIO

Replace inline arrow::schema({...}) definitions with FeatureSchema::schema()
and ConsensusFeatureSchema::schema() from the centralized registry. Replace
string literal column names with schema constants on read paths. Add strict
schema validation on write paths and subset validation on read paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…, MSExperimentArrowExport

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…ogram consumers

Replace inline arrow::schema({...}) definitions with centralized registry
calls (OSWPrecursorSchema, OSWTransitionSchema, OSWFeatureSchema,
OSWFeatureTransitionSchema, OSWFeaturePrecursorSchema, OSWRunSchema,
XICSchema, XIMSchema) across all four files:

- TransitionParquetFile.cpp: precursor + transition schemas on write,
  subset validation on read
- OpenSwathOSWParquetWriter.cpp: features, feature_transition,
  feature_precursor, runs schemas with strict validation
- MSChromatogramParquetConsumer.cpp: XIC schema with strict validation
- MobilogramParquetConsumer.cpp: XIM schema with strict validation

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add Python bindings for all 18 Arrow schema structs, schema validation,
and C Data Interface bridge functions for schema round-tripping between
C++ arrow::Schema and pyarrow.Schema.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replace hardcoded column name strings with schema constants from
SpectraLongSchema, SpectraSemiWideSchema, ChromatogramSchema,
ConsensusFeatureExportSchema, and PSMSchema in the MSExperiment,
ConsensusMap, and PeptideIdentificationList addon files. Falls back
to string literals when _arrow_zerocopy is not available.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Mar 22, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a WITH_PARQUET-gated centralized Arrow schema registry and validation API, replaces many inline Arrow schema constructions with registry-provided schemas, and enforces runtime schema validation on Arrow table import/export across multiple I/O modules and tools.

Changes

Cohort / File(s) Summary
Arrow Schema Registry Core
src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h, src/openms/source/FORMAT/ArrowSchemaRegistry.cpp
New WITH_PARQUET-gated registry and validation API: ArrowSchemaValidation (Mode, ValidationResult, validate) and many schema descriptor structs (Protein, ProteinGroup, SearchParams, Feature, ConsensusFeature, PSM, ConsensusFeatureExport, Spectra*, Chromatogram*, OSW*, XIC/XIM, etc.) with DataType and schema() factory methods.
OpenSwath / Transition Parquet
src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp, src/openms/source/ANALYSIS/OPENSWATH/TransitionParquetFile.cpp
Replaced inline OSW schemas with OSW*Schema::schema(), added schema validation (strict or subset) after table construction, throw Exception::InvalidValue on validation failure, and use registry constants for column names.
Feature & Consensus Map I/O
src/openms/source/FORMAT/FeatureMapArrowIO.cpp, src/openms/source/FORMAT/ConsensusMapArrowIO.cpp, src/openms/source/FORMAT/ConsensusMapArrowExport.cpp
Switched to FeatureSchema/ConsensusFeatureSchema/ConsensusFeatureExportSchema::schema(); validate tables (strict on export, subset on import); replace hard-coded column names with registry constants; return/null or log on validation failures.
Protein I/O & PSMs
src/openms/source/FORMAT/ProteinIdentificationArrowIO.cpp, src/openms/source/FORMAT/QPXFile.cpp
Use ProteinSchema/ProteinGroupSchema/SearchParamsSchema and PSMSchema::schema() for exports/imports; add strict export validation and subset import validation; replace literal column names with registry constants.
Spectra & Chromatogram Export
src/openms/source/FORMAT/MSExperimentArrowExport.cpp
Use SpectraLongSchema/SpectraSemiWideSchema and ChromatogramSchema/ChromatogramSemiWideSchema constants for column names and schemas; validate tables in subset mode and return nullptr on failure.
Parquet Consumers / Streaming (XIC/XIM)
src/openms/source/FORMAT/DATAACCESS/MSChromatogramParquetConsumer.cpp, src/openms/source/FORMAT/DATAACCESS/MobilogramParquetConsumer.cpp
Replaced inline XIC/XIM schema building with XICSchema::schema() / XIMSchema::schema() and validate built tables before writing; throw Exception::InvalidValue on validation failure.
Consensus/Feature Export Path (other modules)
src/openms/source/FORMAT/ConsensusMapArrowExport.cpp, src/openms/source/FORMAT/ConsensusMapArrowIO.cpp, src/openms/source/FORMAT/FeatureMapArrowIO.cpp
Centralized schemas used and validation added across export/import codepaths; column name constants replaced everywhere those modules interact with Arrow tables.
Build & Tests
src/openms/source/FORMAT/sources.cmake, src/tests/class_tests/openms/CMakeLists.txt, src/tests/class_tests/openms/executables.cmake, src/tests/class_tests/openms/source/ArrowSchemaRegistry_test.cpp
Add ArrowSchemaRegistry.cpp to build when WITH_PARQUET, update test linking/listing, and add comprehensive ArrowSchemaRegistry_test covering validation modes, schema descriptors, field constants, nested types, nullability, and subset behavior.
TOPP Tooling
src/topp/ParquetConverter.cpp, src/openms/source/APPLICATIONS/ToolHandler.cpp, src/topp/executables.cmake
Add new ParquetConverter TOPP tool (Parquet↔XML for FeatureMap/ConsensusMap), register tool under WITH_PARQUET, and wire executable into build and tool registry.
Misc. consumers/exports
src/openms/source/FORMAT/DATAACCESS/*, src/openms/source/ANALYSIS/*
Multiple modules updated to include OpenMS/FORMAT/ArrowSchemaRegistry.h and use registry schemas/constants and validate Arrow tables after construction or before parsing.

Sequence Diagram(s)

sequenceDiagram
  participant Exporter as Exporter (module)
  participant Builder as Arrow Table Builder
  participant Registry as ArrowSchemaRegistry
  participant Validator as ArrowSchemaValidation
  participant Writer as Parquet/Arrow Writer

  Exporter->>Builder: assemble column arrays -> arrow::Table
  Builder->>Registry: request schema() (e.g., FeatureSchema::schema())
  Builder->>Validator: validate(table, schema, Mode)
  Validator-->>Builder: ValidationResult (valid/errors)
  alt valid
    Builder->>Writer: write table / return table pointer
  else invalid
    Builder->>Exporter: throw Exception::InvalidValue or return nullptr / log error
  end
Loading

Possibly related PRs

Suggested reviewers

  • jpfeuffer

Poem

🐰 In my burrow I mapped each field and name,
Lists and structs aligned, no two the same.
Tables hop through tests, validation bright,
Parquet gates open only when schemas are right. 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 37.06% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely captures the main change: centralization of Arrow/Parquet schemas in a new ArrowSchemaRegistry module, which is the primary objective across the changeset.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/arrow-schema-registry

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 15

🧹 Nitpick comments (3)
src/openms/source/FORMAT/QPXFile.cpp (1)

658-664: Use \n in this new error log path.

std::endl forces an unnecessary flush here.

As per coding guidelines, "avoid std::endl for performance (use \n)".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/QPXFile.cpp` around lines 658 - 664, The error log
in QPXFile's schema validation path uses std::endl which forces an unnecessary
flush; update the OPENMS_LOG_ERROR call in the block that checks
ArrowSchemaValidation::validate(table, PSMSchema::schema()) to terminate the
message with '\n' (or omit explicit manipulator) instead of std::endl so the
logger does not flush unnecessarily and follows the project's performance
guideline.
src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp (1)

1067-1134: Manual array ordering is still a second source of truth.

This table now pulls its schema from OSWFeatureSchema::schema(), but the column data is still assembled purely by position. With this many float64 fields, a future reorder/addition in the registry can silently remap data and still pass validate(). Consider deriving the array list from shared descriptors/field constants so schema and column order stay coupled. The same positional hazard applies to the similar blocks below.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp` around
lines 1067 - 1134, The features_table construction currently relies on
positional assembly of arrays (many ParquetFile::finishArray(...) calls) while
the schema comes from OSWFeatureSchema::schema(), risking silent column
mismatches if the schema changes; update the code that builds features_table
(the block creating features_schema and features_table) to iterate the schema
fields (from OSWFeatureSchema::schema()->fields() or equivalent descriptors) and
map each field name to the corresponding builder (e.g. feature_id_builder,
exp_rt_builder, var_ms2_massdev_builder, etc.) so you produce the columns in
schema order by name lookup instead of by hardcoded position; apply the same
refactor to the other similar table-building blocks so schema and column arrays
remain coupled and reorder-safe.
src/openms/source/FORMAT/ConsensusMapArrowExport.cpp (1)

806-812: Use \n in this new error log path.

std::endl forces an unnecessary flush here.

As per coding guidelines, "avoid std::endl for performance (use \n)".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/ConsensusMapArrowExport.cpp` around lines 806 - 812,
The error logging in the schema validation block uses std::endl which forces an
unnecessary flush; update the OPENMS_LOG_ERROR call in the block that checks
ArrowSchemaValidation::validate(table, ConsensusFeatureExportSchema::schema())
so it appends '\n' instead of using std::endl (keep the message text including
validation.toString()) to avoid the flush while preserving the same error output
and return nullptr behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/superpowers/plans/2026-03-22-arrow-schema-registry.md`:
- Around line 177-183: The shell snippets hard-code
/home/sachsenb/Development/OpenMS; update them to be checkout-agnostic by using
repo-root detection (e.g., assign ROOT=$(git rev-parse --show-toplevel) or use
relative paths from the repo) and then run cmake/cmake-build and ctest from that
variable (replace the two occurrences of the explicit cd
/home/sachsenb/Development/OpenMS and
/home/sachsenb/Development/OpenMS/OpenMS-build lines in the
ArrowSchemaRegistry_test snippets); ensure the commands use ROOT or
repo-relative paths so they work on any clone.

In `@docs/superpowers/specs/2026-03-22-arrow-schema-registry-design.md`:
- Around line 164-166: The Subset mode text currently rejects unknown fields and
thus breaks additive schema evolution; update the Subset enum/documentation (the
lines with "Strict" and "Subset") to state that Subset should allow
unknown/extra fields (i.e., ignore columns not present in the expected schema)
and validate only the intersection: every field present in the table that is
known in the expected schema must match the expected type, but unknown
writer-added fields are permitted to ensure forward compatibility for older
readers.

In `@src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h`:
- Around line 1-505: Add the missing public-header preamble and Doxygen
comments: insert the required file header preamble (copyright line, SPDX license
identifier and the $Maintainer:$ marker) at the top of ArrowSchemaRegistry.h,
and add concise Doxygen `@file/`@brief and `@ingroup` tags; then add brief Doxygen
comments for all exported public symbols so they appear in the docs — namely
ArrowSchemaValidation::ValidationResult, ArrowSchemaValidation::validate, and
each exported struct (ProteinSchema, ProteinGroupSchema, SearchParamsSchema,
FeatureSchema, ConsensusFeatureSchema, PSMSchema, ConsensusFeatureExportSchema,
SpectraLongSchema, SpectraSemiWideSchema, ChromatogramSchema,
OSWPrecursorSchema, OSWTransitionSchema, OSWFeaturePrecursorSchema,
OSWRunSchema, OSWFeatureSchema, OSWFeatureTransitionSchema, XICSchema,
XIMSchema) and their public methods (e.g., modificationsType(),
metavaluesType(), schema(), etc.); keep comments short (`@brief` + `@ingroup`) and
document purpose and return values for the factory functions.

In `@src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp`:
- Around line 1135-1141: The feature-table validation block (using
ArrowSchemaValidation::validate, feat_validation and throwing
Exception::InvalidValue) runs after run_path has been created but outside the
existing try/catch that performs run cleanup; move this validation into the same
try block (or wrap it with the same cleanup guard) so any exception triggers the
existing cleanup logic that removes the stale run_id directory and
cancels/cleans queued async work. Ensure the thrown Exception::InvalidValue
remains the same, but is raised from inside the guarded scope that currently
handles failed-run removal.

In `@src/openms/source/ANALYSIS/OPENSWATH/TransitionParquetFile.cpp`:
- Around line 241-253: The validator currently uses
ArrowSchemaValidation::Mode::Subset which rejects unexpected columns and thus
breaks forward-compatibility; update the two validate calls
(ArrowSchemaValidation::validate on precursors_table and transitions_table using
OSWPrecursorSchema::schema() and OSWTransitionSchema::schema()) to use the
validation mode that allows extra fields (e.g.,
ArrowSchemaValidation::Mode::Superset or the library-specific "allow extra
columns" mode) so only missing/invalid required columns cause errors and added
future columns are ignored.

In `@src/openms/source/FORMAT/DATAACCESS/MobilogramParquetConsumer.cpp`:
- Around line 576-582: Move the XIM schema validation so it runs before the
builders are consumed (i.e., before buildTableFromBuilders_() and any calls to
finishArray_()), or set a failed state to block further operations;
specifically, validate the Arrow table against XIMSchema::schema() prior to
calling buildTableFromBuilders_() (which triggers finishArray_()) so that if
validation fails you either throw immediately or mark the consumer as failed
(e.g., set a flag that makes finalize() return an error) to avoid leaving
pending_rows_ populated while builders are cleared by Finish().

In `@src/openms/source/FORMAT/DATAACCESS/MSChromatogramParquetConsumer.cpp`:
- Around line 631-637: Validate the Arrow table against XICSchema::schema()
before you clear the current batch state, or if validation must occur after
clearing, mark the consumer as failed (e.g., set a failed_ flag or call an
existing markFailed()/setFailed() helper) before throwing so finalize() or the
destructor won't treat the file as valid; the validation call to
ArrowSchemaValidation::validate(...) and the throw of Exception::InvalidValue
should be guarded by one of these fixes to prevent producing zero-row or
truncated outputs during finalize()/~MSChromatogramParquetConsumer().

In `@src/openms/source/FORMAT/FeatureMapArrowIO.cpp`:
- Around line 1249-1255: The current schema check uses
ArrowSchemaValidation::validate(tbl, FeatureSchema::schema(),
ArrowSchemaValidation::Mode::Subset) which treats unexpected/newer fields as
errors and blocks forward-compatible tables; instead, project the incoming table
to only the known columns defined by FeatureSchema::schema() and validate that
projection (i.e., build a table/view containing only FeatureSchema::schema()
columns from tbl and call ArrowSchemaValidation::validate(projected_tbl,
FeatureSchema::schema(), ArrowSchemaValidation::Mode::Subset)), so unknown extra
columns are ignored while still validating the expected subset.
- Line 1268: The code calls getColumn_(tbl, FeatureSchema::WIDTH) with its
default required=true causing spurious "missing required column" errors even
though the importer already falls back to 0.0f when width is absent; update the
lookup to treat width as optional by calling getColumn_(tbl,
FeatureSchema::WIDTH, /*required=*/false) (or the equivalent overload) in
FeatureMapArrowIO.cpp so the missing column is not reported as an error while
preserving the existing fallback behavior.

In `@src/pyOpenMS/bindings/arrow_zerocopy.cpp`:
- Around line 996-1005: The binding lambda for validate_arrow_schema should
explicitly reject invalid mode strings instead of defaulting to strict: check
that the incoming mode is exactly "strict" or "subset" (case-sensitive), and if
not throw nb::value_error with a clear message; only after validation map
"subset" to OpenMS::ArrowSchemaValidation::Mode::Subset and "strict" to
OpenMS::ArrowSchemaValidation::Mode::Strict, then call pyarrow_to_table,
pyarrow_schema_to_arrow and OpenMS::ArrowSchemaValidation::validate as before.
- Around line 158-179: The schema_to_pyarrow and pyarrow_schema_to_arrow
functions currently malloc ArrowSchema directly and can leak if exceptions
occur; create an RAII wrapper (e.g., ArrowSchemaGuard) modeled after the
existing ArrowGuard pattern to own the ArrowSchema*, call release in its
destructor if set, and free the malloc'd memory, then replace the direct
malloc/free usage in schema_to_pyarrow and pyarrow_schema_to_arrow with this
guard so any exception will trigger proper release/free; also update
validate_arrow_schema to explicitly accept only "strict" or "subset" (or throw
std::invalid_argument) and document those exact strings in its function comment
or error message so invalid mode strings are rejected rather than silently
mapped to strict.

In `@src/pyOpenMS/pyopenms/addons/peptideidentificationlist.py`:
- Around line 618-665: The exporter currently only renames columns but does not
enforce the canonical PSMSchema types and required fields: update to_psm_arrow()
and psm_columns() (and the related export code paths that use _SEQUENCE,
_IS_DECOY, _SCAN_COL, etc.) so they emit the exact PSMSchema fields with the
correct types (boolean for is_decoy, int32 for scan, include
higher_score_better, peptide_identification_index, run_identifier) instead of
overloaded/renamed values (e.g., P_ID or text scan); if nativeId support must be
preserved, add a separate column (e.g., scan_native_id) or provide an alternate
schema branch rather than writing nativeId into the scan field; ensure schema
presence is validated when _arrow_zerocopy is used and map/convert values
accordingly in the exporters to guarantee strict schema compliance.

In `@src/pyOpenMS/tests/unittests/test_arrow_zerocopy.py`:
- Around line 348-355: The test constructs arrays using pa.array([0],
type=field.type) for every field in FeatureSchema.schema(), which fails for
nested types like convex_hulls and metavalues; change the table construction in
test_strict_valid (and the similar case later) to create empty arrays of the
correct type instead — e.g. replace pa.array([0], type=field.type) with
pa.array([], type=field.type) (or otherwise build an empty table that exactly
matches FeatureSchema.schema()) so validate_arrow_schema(table, schema) can run
without errors.

In `@src/tests/class_tests/openms/source/ArrowSchemaRegistry_test.cpp`:
- Around line 23-179: Add unit tests that exercise the timestamp-unit
compatibility branch by creating tables where expected and actual schemas use
arrow::timestamp(arrow::TimeUnit::SECOND) versus
arrow::timestamp(arrow::TimeUnit::MILLI) (and vice‑versa) and calling
ArrowSchemaValidation::validate so ArrowSchemaValidation::areTypesCompatible is
exercised; include cases in both Strict and Subset modes and assert validation
passes when only units differ; also add a test that SearchParamsSchema::DATE
(which currently checks only the TIMESTAMP id) is validated against timestamp
fields with differing TimeUnit to ensure the DATE assertion covers the
unit‑compatibility path.

---

Nitpick comments:
In `@src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp`:
- Around line 1067-1134: The features_table construction currently relies on
positional assembly of arrays (many ParquetFile::finishArray(...) calls) while
the schema comes from OSWFeatureSchema::schema(), risking silent column
mismatches if the schema changes; update the code that builds features_table
(the block creating features_schema and features_table) to iterate the schema
fields (from OSWFeatureSchema::schema()->fields() or equivalent descriptors) and
map each field name to the corresponding builder (e.g. feature_id_builder,
exp_rt_builder, var_ms2_massdev_builder, etc.) so you produce the columns in
schema order by name lookup instead of by hardcoded position; apply the same
refactor to the other similar table-building blocks so schema and column arrays
remain coupled and reorder-safe.

In `@src/openms/source/FORMAT/ConsensusMapArrowExport.cpp`:
- Around line 806-812: The error logging in the schema validation block uses
std::endl which forces an unnecessary flush; update the OPENMS_LOG_ERROR call in
the block that checks ArrowSchemaValidation::validate(table,
ConsensusFeatureExportSchema::schema()) so it appends '\n' instead of using
std::endl (keep the message text including validation.toString()) to avoid the
flush while preserving the same error output and return nullptr behavior.

In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 658-664: The error log in QPXFile's schema validation path uses
std::endl which forces an unnecessary flush; update the OPENMS_LOG_ERROR call in
the block that checks ArrowSchemaValidation::validate(table,
PSMSchema::schema()) to terminate the message with '\n' (or omit explicit
manipulator) instead of std::endl so the logger does not flush unnecessarily and
follows the project's performance guideline.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e4c815be-3776-4e48-86df-ac99fe165a0a

📥 Commits

Reviewing files that changed from the base of the PR and between 88a8ffe and bca8f75.

📒 Files selected for processing (23)
  • docs/superpowers/plans/2026-03-22-arrow-schema-registry.md
  • docs/superpowers/specs/2026-03-22-arrow-schema-registry-design.md
  • src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h
  • src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp
  • src/openms/source/ANALYSIS/OPENSWATH/TransitionParquetFile.cpp
  • src/openms/source/FORMAT/ArrowSchemaRegistry.cpp
  • src/openms/source/FORMAT/ConsensusMapArrowExport.cpp
  • src/openms/source/FORMAT/ConsensusMapArrowIO.cpp
  • src/openms/source/FORMAT/DATAACCESS/MSChromatogramParquetConsumer.cpp
  • src/openms/source/FORMAT/DATAACCESS/MobilogramParquetConsumer.cpp
  • src/openms/source/FORMAT/FeatureMapArrowIO.cpp
  • src/openms/source/FORMAT/MSExperimentArrowExport.cpp
  • src/openms/source/FORMAT/ProteinIdentificationArrowIO.cpp
  • src/openms/source/FORMAT/QPXFile.cpp
  • src/openms/source/FORMAT/sources.cmake
  • src/pyOpenMS/bindings/arrow_zerocopy.cpp
  • src/pyOpenMS/pyopenms/addons/consensusmap.py
  • src/pyOpenMS/pyopenms/addons/msexperiment.py
  • src/pyOpenMS/pyopenms/addons/peptideidentificationlist.py
  • src/pyOpenMS/tests/unittests/test_arrow_zerocopy.py
  • src/tests/class_tests/openms/CMakeLists.txt
  • src/tests/class_tests/openms/executables.cmake
  • src/tests/class_tests/openms/source/ArrowSchemaRegistry_test.cpp

Comment on lines +241 to +253
// Validate loaded tables against registry schemas (subset mode — file may have extra columns)
auto prec_validation = ArrowSchemaValidation::validate(precursors_table, OSWPrecursorSchema::schema(), ArrowSchemaValidation::Mode::Subset);
if (!prec_validation.valid)
{
throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
"Precursors table schema validation failed: " + prec_validation.toString(), "");
}
auto trans_validation = ArrowSchemaValidation::validate(transitions_table, OSWTransitionSchema::schema(), ArrowSchemaValidation::Mode::Subset);
if (!trans_validation.valid)
{
throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
"Transitions table schema validation failed: " + trans_validation.toString(), "");
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Mode::Subset will still reject newer OSW tables with added fields.

The current validator flags any unexpected column as an error, so this read path is not actually forward-compatible despite the comment. Libraries that add precursor or transition columns will now throw here before the importer even reaches the fields it uses.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/TransitionParquetFile.cpp` around lines
241 - 253, The validator currently uses ArrowSchemaValidation::Mode::Subset
which rejects unexpected columns and thus breaks forward-compatibility; update
the two validate calls (ArrowSchemaValidation::validate on precursors_table and
transitions_table using OSWPrecursorSchema::schema() and
OSWTransitionSchema::schema()) to use the validation mode that allows extra
fields (e.g., ArrowSchemaValidation::Mode::Superset or the library-specific
"allow extra columns" mode) so only missing/invalid required columns cause
errors and added future columns are ignored.

timosachsenberg and others added 2 commits March 22, 2026 15:56
The nanobind bindings for ArrowSchemaRegistry add ~500 lines of
boilerplate for marginal benefit. The real value is in the C++ side
(single source of truth, compile-time constants, write/read validation).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…amp test)

- Add standard OpenMS file header preamble to ArrowSchemaRegistry.h/.cpp
- Replace std::endl with "\n" in schema validation OPENMS_LOG_ERROR lines
- Mark FeatureSchema::WIDTH as optional in FeatureMapArrowIO importer
- Add timestamp unit compatibility tests for Strict and Subset modes

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/openms/source/FORMAT/MSExperimentArrowExport.cpp (1)

1020-1025: Semi-wide chromatograms are still outside the schema registry contract.

This branch now reuses registry names, but it still re-declares the field types locally and returns an unvalidated table. A dedicated semi-wide chromatogram schema, or registry-provided typed field helpers, would keep this path under the same single-source-of-truth guarantees as the other export branches.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/MSExperimentArrowExport.cpp` around lines 1020 -
1025, The semi-wide chromatogram export path is recreating field types locally
(see uses of ChromatogramSchema::..., fields.push_back, and builders' Finish
calls like chrom_index_builder.Finish / rt_list_builder.Finish) and returns an
unvalidated table; change this to use a single-source-of-truth schema: either
construct fields and types via a dedicated SemiWideChromatogramSchema (or call
registry-provided typed field helper functions) instead of re-declaring
arrow::field(...) inline, and ensure the resulting table is validated against
that schema before returning (i.e., replace the ad-hoc fields.push_back(...)
usage and arrays.push_back(arr) with schema-driven field construction and run
Arrow/table validation).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/openms/source/FORMAT/ProteinIdentificationArrowIO.cpp`:
- Around line 1291-1297: The schema validation currently allows timestamps with
units other than seconds but the deserialization code uses Arrow's
TimestampArray::Value(row) as if it were epoch seconds (used with
gmtime_r/gmtime_s), causing wrong dates; fix by normalizing the raw timestamp
value from TimestampArray::Value(row) according to the array's
TimestampType::unit() (divide by 1'000 for MILLI, 1'000'000 for MICRO,
1'000'000'000 for NANO) before converting to struct tm/DateTime in the
deserializer (the code that reads SearchParamsSchema::DATE), or alternatively
change the validation in ArrowSchemaValidation::validate to reject non-second
timestamp units so downstream code that calls gmtime_r/gmtime_s can safely
assume seconds. Ensure you reference TimestampType::unit() and
TimestampArray::Value when locating where to apply the normalization.

---

Nitpick comments:
In `@src/openms/source/FORMAT/MSExperimentArrowExport.cpp`:
- Around line 1020-1025: The semi-wide chromatogram export path is recreating
field types locally (see uses of ChromatogramSchema::..., fields.push_back, and
builders' Finish calls like chrom_index_builder.Finish / rt_list_builder.Finish)
and returns an unvalidated table; change this to use a single-source-of-truth
schema: either construct fields and types via a dedicated
SemiWideChromatogramSchema (or call registry-provided typed field helper
functions) instead of re-declaring arrow::field(...) inline, and ensure the
resulting table is validated against that schema before returning (i.e., replace
the ad-hoc fields.push_back(...) usage and arrays.push_back(arr) with
schema-driven field construction and run Arrow/table validation).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 806cc457-d6f1-46d6-80fc-e916be1ef794

📥 Commits

Reviewing files that changed from the base of the PR and between bca8f75 and 878cc49.

📒 Files selected for processing (9)
  • src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h
  • src/openms/source/FORMAT/ArrowSchemaRegistry.cpp
  • src/openms/source/FORMAT/ConsensusMapArrowExport.cpp
  • src/openms/source/FORMAT/ConsensusMapArrowIO.cpp
  • src/openms/source/FORMAT/FeatureMapArrowIO.cpp
  • src/openms/source/FORMAT/MSExperimentArrowExport.cpp
  • src/openms/source/FORMAT/ProteinIdentificationArrowIO.cpp
  • src/openms/source/FORMAT/QPXFile.cpp
  • src/tests/class_tests/openms/source/ArrowSchemaRegistry_test.cpp
✅ Files skipped from review due to trivial changes (1)
  • src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/openms/source/FORMAT/ConsensusMapArrowExport.cpp
  • src/openms/source/FORMAT/FeatureMapArrowIO.cpp
  • src/tests/class_tests/openms/source/ArrowSchemaRegistry_test.cpp
  • src/openms/source/FORMAT/ArrowSchemaRegistry.cpp

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

♻️ Duplicate comments (1)
src/openms/source/FORMAT/ArrowSchemaRegistry.cpp (1)

103-115: ⚠️ Potential issue | 🟠 Major

Mode::Subset is still enforcing the wrong subset relation.

The read-side callers at src/openms/source/FORMAT/FeatureMapArrowIO.cpp Line 1250 and src/openms/source/FORMAT/ConsensusMapArrowIO.cpp Line 1328 need “validate the expected fields that are present”, but this branch still invalidates every unknown actual field. That makes any newer file with an added column fail import.

Suggested direction
-        for (int i = 0; i < actual_n; ++i)
+        for (int i = 0; i < expected_n; ++i)
         {
-          auto actual_field = actual_schema->field(i);
-          auto expected_field = expected_schema->GetFieldByName(actual_field->name());
-
-          if (!expected_field)
-          {
-            result.valid = false;
-            result.errors.push_back("Unexpected field '" + actual_field->name() +
-              "' not in expected schema");
-            continue;
-          }
+          auto expected_field = expected_schema->field(i);
+          auto actual_field = actual_schema->GetFieldByName(expected_field->name());
+          if (!actual_field)
+          {
+            continue; // missing fields are allowed in Subset mode
+          }
           if (!areTypesCompatible(actual_field->type(), expected_field->type()))
           {
             result.valid = false;
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/ArrowSchemaRegistry.cpp` around lines 103 - 115, The
Mode::Subset branch currently iterates actual_schema fields and treats any
unknown actual_field (using actual_field->name() and
expected_schema->GetFieldByName) as an error; instead it should allow extra
actual fields and only verify that each expected field that exists in
actual_schema is compatible. Modify the logic in ArrowSchemaRegistry.cpp's
Mode::Subset branch to iterate over expected_schema's fields (or for each
expected field call actual = actual_schema->GetFieldByName(expected_name)) and
for each expected field ensure it is present and has compatible
type/nullability, setting result.valid = false and pushing to result.errors only
when an expected field is missing or incompatible; remove the code path that
marks unknown actual fields as errors so new/extra columns no longer fail
import.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/openms/source/FORMAT/ArrowSchemaRegistry.cpp`:
- Around line 42-50: The validate() helper (in ArrowSchemaRegistry::validate or
validate function) only compares schema metadata and must also validate column
arrays; call table->ValidateFull() (or arrow::Table::ValidateFull()) after
acquiring actual_schema and before returning success, check its Status/Result
and convert any failure into a ValidationResult error (include failure message)
so callers (e.g., FeatureMapArrowIO.cpp and ConsensusMapArrowIO.cpp) will see
column-type/length mismatches; ensure you short-circuit on a failed
ValidateFull() and return that failure in ValidationResult.

In `@src/openms/source/FORMAT/ConsensusMapArrowIO.cpp`:
- Around line 1407-1427: The importPSMsFromArrow() function is performing unsafe
static casts and int retrievals after getColumn_() without verifying column
types; before accessing columns and doing any std::static_pointer_cast or
calling getInt64Value_/getInt32Value_, call ArrowSchemaValidation::validate() on
PSMSchema::schema() to validate the input table schema, and additionally check
that the local consensus_feature_unique_id column is of int64 type (e.g., verify
its Arrow type is int64) and handle/report mismatches early (return error or
throw) instead of proceeding with unsafe casts in importPSMsFromArrow().

In `@src/openms/source/FORMAT/FeatureMapArrowIO.cpp`:
- Around line 1425-1445: Before downcasting PSM table columns in
FeatureMapArrowIO.cpp, validate the Parquet table schema by calling
ArrowSchemaValidation::validate(tbl, PSMSchema::schema(),
ArrowSchemaValidation::Mode::Subset) and handle its failure (return/throw an
error) so we never static_pointer_cast mismatched arrays; perform this
validation immediately before the block that calls getColumn_() for PSMSchema
columns (e.g., where col_p_id, col_peptidoform, col_sequence, etc. are
obtained). Also treat the non-schema column feature_unique_id separately (do not
expect it in PSMSchema::schema()) — query and validate its type after the main
schema validation and produce a clear error if its type is unexpected. Ensure
all subsequent static_pointer_casts only execute after successful validation.

---

Duplicate comments:
In `@src/openms/source/FORMAT/ArrowSchemaRegistry.cpp`:
- Around line 103-115: The Mode::Subset branch currently iterates actual_schema
fields and treats any unknown actual_field (using actual_field->name() and
expected_schema->GetFieldByName) as an error; instead it should allow extra
actual fields and only verify that each expected field that exists in
actual_schema is compatible. Modify the logic in ArrowSchemaRegistry.cpp's
Mode::Subset branch to iterate over expected_schema's fields (or for each
expected field call actual = actual_schema->GetFieldByName(expected_name)) and
for each expected field ensure it is present and has compatible
type/nullability, setting result.valid = false and pushing to result.errors only
when an expected field is missing or incompatible; remove the code path that
marks unknown actual fields as errors so new/extra columns no longer fail
import.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 70425324-1cd4-44c8-9e79-215370ea6edc

📥 Commits

Reviewing files that changed from the base of the PR and between 878cc49 and e917a4e.

📒 Files selected for processing (7)
  • src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h
  • src/openms/source/ANALYSIS/OPENSWATH/TransitionParquetFile.cpp
  • src/openms/source/FORMAT/ArrowSchemaRegistry.cpp
  • src/openms/source/FORMAT/ConsensusMapArrowIO.cpp
  • src/openms/source/FORMAT/FeatureMapArrowIO.cpp
  • src/openms/source/FORMAT/MSExperimentArrowExport.cpp
  • src/tests/class_tests/openms/source/ArrowSchemaRegistry_test.cpp
✅ Files skipped from review due to trivial changes (1)
  • src/openms/source/FORMAT/MSExperimentArrowExport.cpp
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/openms/source/ANALYSIS/OPENSWATH/TransitionParquetFile.cpp
  • src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h

Comment on lines +42 to +50
ValidationResult validate(
const std::shared_ptr<arrow::Table>& table,
const std::shared_ptr<arrow::Schema>& expected_schema,
Mode mode)
{
ValidationResult result;
auto actual_schema = table->schema();
int actual_n = actual_schema->num_fields();
int expected_n = expected_schema->num_fields();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

find . -name "ArrowSchemaRegistry.cpp" -type f

Repository: OpenMS/OpenMS

Length of output: 107


🏁 Script executed:

find . -name "FeatureMapArrowIO.cpp" -type f

Repository: OpenMS/OpenMS

Length of output: 105


🏁 Script executed:

find . -name "ConsensusMapArrowIO.cpp" -type f

Repository: OpenMS/OpenMS

Length of output: 107


🏁 Script executed:

wc -l ./src/openms/source/FORMAT/ArrowSchemaRegistry.cpp

Repository: OpenMS/OpenMS

Length of output: 111


🏁 Script executed:

cat -n ./src/openms/source/FORMAT/ArrowSchemaRegistry.cpp | head -100

Repository: OpenMS/OpenMS

Length of output: 4587


🏁 Script executed:

cat -n ./src/openms/source/FORMAT/ArrowSchemaRegistry.cpp | sed -n '100,150p'

Repository: OpenMS/OpenMS

Length of output: 2242


🏁 Script executed:

cat -n ./src/openms/source/FORMAT/ArrowSchemaRegistry.cpp | sed -n '150,200p'

Repository: OpenMS/OpenMS

Length of output: 2154


🏁 Script executed:

wc -l ./src/openms/source/FORMAT/FeatureMapArrowIO.cpp

Repository: OpenMS/OpenMS

Length of output: 110


🏁 Script executed:

cat -n ./src/openms/source/FORMAT/FeatureMapArrowIO.cpp | sed -n '1040,1060p'

Repository: OpenMS/OpenMS

Length of output: 836


🏁 Script executed:

wc -l ./src/openms/source/FORMAT/ConsensusMapArrowIO.cpp

Repository: OpenMS/OpenMS

Length of output: 112


🏁 Script executed:

cat -n ./src/openms/source/FORMAT/ConsensusMapArrowIO.cpp | sed -n '1131,1151p'

Repository: OpenMS/OpenMS

Length of output: 827


🌐 Web query:

Apache Arrow C++ ValidateFull table validation method

💡 Result:

The Apache Arrow C++ library provides ValidateFull methods for validating Table and RecordBatch objects. These are virtual methods on the abstract base classes arrow::Table and arrow::RecordBatch. For RecordBatch::ValidateFull: - Performs extensive validation checks to determine inconsistencies within the record batch's schema and internal data. - Potentially O(kn) time complexity, where k is the number of fields/array descendants and n is the number of rows. - Source: Official API docs and record_batch.h header. For Table::ValidateFull: - Similar extensive validation for tables (sequence of chunked arrays). - O(km) for Validate where m is number of chunks; ValidateFull is more thorough. - Added to GLib bindings in early 2025 (PR #45468), indicating C++ implementation existed prior. - Used in Parquet fuzzing (issue #48560) to check structural soundness, distinguishing from Validate which is cheaper. - Recommended for verifying constructed tables, e.g., after Table::Make or generating test data (cookbook example uses RecordBatch::ValidateFull). Usage example (from cookbook): ARROW_RETURN_NOT_OK(batch->ValidateFull); Both methods return arrow::Status; ok if valid, else error with details. Validate is faster/cheap O(k) check; ValidateFull is comprehensive including data content (e.g., UTF-8 validity, temporal ranges). Available since at least Arrow 0.13 (2019 table validation discussions), current in main branch (2026). Source code in cpp/src/arrow/table.cc and record_batch.cc.

Citations:


🏁 Script executed:

cat -n ./src/openms/source/FORMAT/FeatureMapArrowIO.cpp | sed -n '1000,1050p' | head -40

Repository: OpenMS/OpenMS

Length of output: 2162


🏁 Script executed:

rg "Table::Make" ./src/openms/source/FORMAT/ -A 3 -B 3 | head -60

Repository: OpenMS/OpenMS

Length of output: 4734


🏁 Script executed:

rg "ValidateFull" ./src/openms/source/FORMAT/

Repository: OpenMS/OpenMS

Length of output: 39


🏁 Script executed:

cat -n ./src/openms/source/FORMAT/ArrowSchemaRegistry.cpp | sed -n '42,135p'

Repository: OpenMS/OpenMS

Length of output: 4489


Add ValidateFull() call to the validate() helper function.

The validate() function only compares table schema metadata against expected schema; it does not inspect actual column data arrays. Both FeatureMapArrowIO.cpp (line 1050) and ConsensusMapArrowIO.cpp (line 1141) call this immediately after arrow::Table::Make(), which means column mismatches (wrong length, type, or structure) would not be caught. Add table->ValidateFull() or equivalent column validation to ensure column arrays match the declared schema before returning success.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/ArrowSchemaRegistry.cpp` around lines 42 - 50, The
validate() helper (in ArrowSchemaRegistry::validate or validate function) only
compares schema metadata and must also validate column arrays; call
table->ValidateFull() (or arrow::Table::ValidateFull()) after acquiring
actual_schema and before returning success, check its Status/Result and convert
any failure into a ValidationResult error (include failure message) so callers
(e.g., FeatureMapArrowIO.cpp and ConsensusMapArrowIO.cpp) will see
column-type/length mismatches; ensure you short-circuit on a failed
ValidateFull() and return that failure in ValidationResult.

…rquet

Bidirectional converter that auto-detects direction from input:
- featureXML/consensusXML input → exports to Parquet directory
- Parquet directory input → imports to featureXML/consensusXML

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (5)
src/topp/ParquetConverter.cpp (4)

84-116: Missing ProgressLogger for progress reporting.

Per coding guidelines, TOPP tools should use ProgressLogger for progress reporting, especially for potentially long-running operations like file I/O. Consider adding progress logging for the load/export/import steps.

Example integration
ExitCodes main_(int, const char**) override
{
  // ... existing validation ...
  
  startProgress(0, 1, "Converting...");
  ExitCodes result;
  
  if (fs::is_directory(fs::path(std::string(in))))
  {
    result = importFromParquet_(in, out);
  }
  else if (in.hasSuffix(".featureXML"))
  {
    result = exportFeatureMap_(in, out);
  }
  // ... etc ...
  
  endProgress();
  return result;
}

Based on learnings: "Use ProgressLogger in TOPP tools for progress reporting".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ParquetConverter.cpp` around lines 84 - 116, Add ProgressLogger
calls around the conversion call in main_: call startProgress(...) before
invoking importFromParquet_(in, out), exportFeatureMap_(in, out) or
exportConsensusMap_(in, out) and call endProgress() after the selected
operation; ensure you use the TOPP ProgressLogger pattern (e.g.,
startProgress(0,1,"Converting...") / endProgress()) so long-running file I/O in
importFromParquet_, exportFeatureMap_ and exportConsensusMap_ reports progress.

153-190: Same endl → \n change needed in import method.

Apply the same performance fix here: replace endl with \n on lines 157, 165, 167, 173, 181, and 183.

The import logic itself is correct—using the output file extension to determine the target map type is a sensible approach.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ParquetConverter.cpp` around lines 153 - 190, In the
importFromParquet_ function, replace all uses of std::endl (or unqualified endl)
in OPENMS_LOG_INFO / OPENMS_LOG_ERROR calls with "\n" to avoid flushing the
stream; specifically update the log messages that print the Parquet import
start, "Writing featureXML...", "Import completed successfully.", the
ConsensusMap import start, "Writing consensusXML...", and its "Import completed
successfully." messages so they end with "\n" instead of endl.

119-151: Use \n instead of endl for logging.

Per coding guidelines, avoid std::endl for performance reasons (it forces a stream flush). Replace endl with \n in log statements.

Suggested diff
-    OPENMS_LOG_INFO << "Loading featureXML..." << endl;
+    OPENMS_LOG_INFO << "Loading featureXML...\n";
     FeatureMap fm;
     FeatureXMLFile().load(in, fm);
 
-    OPENMS_LOG_INFO << "Exporting to Parquet directory: " << out << endl;
+    OPENMS_LOG_INFO << "Exporting to Parquet directory: " << out << "\n";
     if (!FeatureMapArrowIO::exportToParquet(fm, out))
     {
       // ... error handling ...
     }
 
-    OPENMS_LOG_INFO << "Export completed successfully." << endl;
+    OPENMS_LOG_INFO << "Export completed successfully.\n";

Apply similar changes to exportConsensusMap_ (lines 138, 142, 149).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ParquetConverter.cpp` around lines 119 - 151, The log statements in
exportFeatureMap_ and exportConsensusMap_ use std::endl which flushes the
stream; update all OPENMS_LOG_INFO calls in these functions (the "Loading
featureXML...", "Exporting to Parquet directory: ..." and "Export completed
successfully." lines in exportFeatureMap_, and the corresponding "Loading
consensusXML...", "Exporting to Parquet directory: ..." and "Export completed
successfully." lines in exportConsensusMap_) to end with "\n" instead of endl so
they don't force a flush.

78-82: Consider adding format hints for input/output parameters.

The -in and -out parameters accept multiple types (directories for Parquet, files for XML). While auto-detection works, adding descriptive text about valid formats could improve usability.

   void registerOptionsAndFlags_() override
   {
-    registerInputFile_("in", "<path>", "", "Input file (featureXML, consensusXML) or Parquet directory");
-    registerOutputFile_("out", "<path>", "", "Output directory (for Parquet export) or file (for XML import)", true);
+    registerInputFile_("in", "<path>", "", "Input file (featureXML, consensusXML) or Parquet directory.");
+    setValidFormats_("in", {"featureXML", "consensusXML"}, false); // false = not required (directory also valid)
+    registerOutputFile_("out", "<path>", "", "Output directory (for Parquet export) or file (featureXML, consensusXML for import).", true);
+    setValidFormats_("out", {"featureXML", "consensusXML"}, false);
   }

Note: If setValidFormats_ doesn't accept directories gracefully, you may need to keep the current approach or handle this differently.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ParquetConverter.cpp` around lines 78 - 82, The parameter
descriptions for the command options registered in registerOptionsAndFlags_()
are ambiguous about accepted formats; update the registerInputFile_("in", ...)
and registerOutputFile_("out", ...) calls to include explicit format hints
(e.g., "featureXML, consensusXML or Parquet directory" and "XML file or Parquet
directory") and, where appropriate, call setValidFormats_() for known file
extensions (featureXML, consensusXML, .xml) to aid validation; if
setValidFormats_() cannot accept directories, keep directory mention only in the
human-readable description and avoid passing directory patterns to
setValidFormats_().
src/openms/source/APPLICATIONS/ToolHandler.cpp (1)

161-164: Alphabetical order: ParquetConverter should come before QPXConverter.

Per the comment at line 43 ("add your tool in alphabetical order"), ParquetConverter (P) should be listed before QPXConverter (Q).

Suggested fix
 `#ifdef` WITH_PARQUET
+    tools_map["ParquetConverter"] = Internal::ToolDescription("ParquetConverter", cat_file_converter);
     tools_map["QPXConverter"] = Internal::ToolDescription("QPXConverter", cat_file_converter);
-    tools_map["ParquetConverter"] = Internal::ToolDescription("ParquetConverter", cat_file_converter);
 `#endif`
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/APPLICATIONS/ToolHandler.cpp` around lines 161 - 164, The
two tool registrations under WITH_PARQUET are out of alphabetical order; swap
the entries so "ParquetConverter" is inserted before "QPXConverter" in
tools_map. Locate the lines that call tools_map["QPXConverter"] =
Internal::ToolDescription("QPXConverter", cat_file_converter) and
tools_map["ParquetConverter"] = Internal::ToolDescription("ParquetConverter",
cat_file_converter) and reorder them so the "ParquetConverter" insertion appears
first to maintain the alphabetical convention.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/topp/ParquetConverter.cpp`:
- Around line 95-101: The current direction detection in ParquetConverter.cpp
that uses fs::is_directory(path(in)) can mis-detect an incomplete export as an
import; update the check to verify the directory contains expected Parquet
output files (e.g., confirm existence of "features.parquet" or other known files
produced by FeatureMapArrowIO::exportToParquet) before calling
importFromParquet_(in, out). Specifically modify the branch that currently
returns importFromParquet_ to require both is_directory and presence of the
expected file(s); alternatively add support for an explicit -mode flag to
override auto-detection (make sure the new flag is read before the fs check).
Ensure references to importFromParquet_ and FeatureMapArrowIO::exportToParquet
are used to guide the change.

---

Nitpick comments:
In `@src/openms/source/APPLICATIONS/ToolHandler.cpp`:
- Around line 161-164: The two tool registrations under WITH_PARQUET are out of
alphabetical order; swap the entries so "ParquetConverter" is inserted before
"QPXConverter" in tools_map. Locate the lines that call
tools_map["QPXConverter"] = Internal::ToolDescription("QPXConverter",
cat_file_converter) and tools_map["ParquetConverter"] =
Internal::ToolDescription("ParquetConverter", cat_file_converter) and reorder
them so the "ParquetConverter" insertion appears first to maintain the
alphabetical convention.

In `@src/topp/ParquetConverter.cpp`:
- Around line 84-116: Add ProgressLogger calls around the conversion call in
main_: call startProgress(...) before invoking importFromParquet_(in, out),
exportFeatureMap_(in, out) or exportConsensusMap_(in, out) and call
endProgress() after the selected operation; ensure you use the TOPP
ProgressLogger pattern (e.g., startProgress(0,1,"Converting...") /
endProgress()) so long-running file I/O in importFromParquet_, exportFeatureMap_
and exportConsensusMap_ reports progress.
- Around line 153-190: In the importFromParquet_ function, replace all uses of
std::endl (or unqualified endl) in OPENMS_LOG_INFO / OPENMS_LOG_ERROR calls with
"\n" to avoid flushing the stream; specifically update the log messages that
print the Parquet import start, "Writing featureXML...", "Import completed
successfully.", the ConsensusMap import start, "Writing consensusXML...", and
its "Import completed successfully." messages so they end with "\n" instead of
endl.
- Around line 119-151: The log statements in exportFeatureMap_ and
exportConsensusMap_ use std::endl which flushes the stream; update all
OPENMS_LOG_INFO calls in these functions (the "Loading featureXML...",
"Exporting to Parquet directory: ..." and "Export completed successfully." lines
in exportFeatureMap_, and the corresponding "Loading consensusXML...",
"Exporting to Parquet directory: ..." and "Export completed successfully." lines
in exportConsensusMap_) to end with "\n" instead of endl so they don't force a
flush.
- Around line 78-82: The parameter descriptions for the command options
registered in registerOptionsAndFlags_() are ambiguous about accepted formats;
update the registerInputFile_("in", ...) and registerOutputFile_("out", ...)
calls to include explicit format hints (e.g., "featureXML, consensusXML or
Parquet directory" and "XML file or Parquet directory") and, where appropriate,
call setValidFormats_() for known file extensions (featureXML, consensusXML,
.xml) to aid validation; if setValidFormats_() cannot accept directories, keep
directory mention only in the human-readable description and avoid passing
directory patterns to setValidFormats_().

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 87816384-a0ed-45aa-8cbd-fefafba076de

📥 Commits

Reviewing files that changed from the base of the PR and between e917a4e and 18357db.

📒 Files selected for processing (3)
  • src/openms/source/APPLICATIONS/ToolHandler.cpp
  • src/topp/ParquetConverter.cpp
  • src/topp/executables.cmake
✅ Files skipped from review due to trivial changes (1)
  • src/topp/executables.cmake

Comment thread src/topp/ParquetConverter.cpp Resolved
…ion, doxygen)

- Change Subset validation mode to ignore unknown fields for forward compatibility
- Move OSW schema validation inside try/catch cleanup guard so validation
  failures trigger run directory cleanup
- Add PSM schema subset validation in FeatureMapArrowIO and ConsensusMapArrowIO
  import functions before column access
- Improve ParquetConverter directory detection to verify parquet files exist
- Add Doxygen @brief comments to all ArrowSchemaRegistry types

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (3)
src/openms/source/FORMAT/ArrowSchemaRegistry.cpp (1)

322-335: Consider adding explicit nullability annotations for consistency.

Unlike ProteinSchema::schema(), FeatureSchema::schema(), and most other schemas in this file, ConsensusFeatureSchema::schema() omits the /*nullable=*/ parameter comments. While Arrow defaults to nullable=true, explicitly documenting nullability for all fields improves consistency and maintainability.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/ArrowSchemaRegistry.cpp` around lines 322 - 335,
ConsensusFeatureSchema::schema() omits explicit /*nullable=*/ annotations on its
arrow::field calls; update the function so each arrow::field call (e.g., for
UNIQUE_ID, RT, MZ, INTENSITY, CHARGE, QUALITY, WIDTH, HANDLES, METAVALUES)
includes the /*nullable=*/ comment before the type to match the style used in
ProteinSchema::schema() and FeatureSchema::schema(), ensuring consistency and
clarity about nullability.
src/topp/ParquetConverter.cpp (1)

133-148: Consider adding ProgressLogger for progress reporting.

Per coding guidelines for TOPP tools, consider using ProgressLogger to report progress during loading, conversion, and writing phases. This is especially helpful for large feature or consensus maps.

As per coding guidelines: "Use ProgressLogger in TOPP tools for progress reporting"

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ParquetConverter.cpp` around lines 133 - 148, The exportFeatureMap_
function currently logs only start/finish messages; add a ProgressLogger
instance to report progress during the heavy steps: wrap the
FeatureXMLFile().load(in, fm) call with ProgressLogger progress messages (start,
setProgress/update if incremental callbacks available, and finish) and do the
same around FeatureMapArrowIO::exportToParquet(fm, out) so conversion/writing
progress is reported; initialize and use a ProgressLogger (e.g., create
ProgressLogger logger; logger.setLogType(this->getLogType()) or equivalent)
before loading and pass updates or call logger.start/stop around the load and
export operations to follow TOPP guidelines.
src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp (1)

1066-1068: Minor style: nested braces create visual ambiguity.

The try { on line 1066 is followed by an anonymous block { on line 1068. While syntactically valid and useful for scoping builders, the indentation makes it look like the second brace belongs to the try block. Consider adding a brief comment to clarify the scope intent.

     std::vector<std::future<void>> write_tasks;
     try
     {
+    // Scope for features table construction
     {
       auto features_schema = OSWFeatureSchema::schema();
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp` around
lines 1066 - 1068, The try block is immediately followed by an anonymous inner
block (try { then {) which creates visual ambiguity; update the code around the
try in OpenSwathOSWParquetWriter.cpp to either remove the redundant anonymous
brace or keep it but add a short comment clarifying its purpose (e.g., /* scope
for builder */) and adjust indentation so the inner block is clearly scoped;
reference the try { ... { sequence in the file and modify that region to make
the scope intent explicit.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/openms/source/FORMAT/FeatureMapArrowIO.cpp`:
- Line 1431: The code retrieves the "feature_unique_id" column with
getColumn_(tbl, "feature_unique_id") into col_feature_id but never validates its
Arrow type, so getInt64Value_ could cast incorrectly for externally modified
Parquet files; add an explicit type check after obtaining col_feature_id to
ensure its Arrow type is INT64 (or convertible) and emit a clear error/exception
(same style as schema validation) if not; update logic around getInt64Value_ to
only call it when the column type is verified, referencing getColumn_,
col_feature_id, getInt64Value_, exportPSMsToArrow and PSMSchema to locate the
change.

In `@src/topp/ParquetConverter.cpp`:
- Around line 100-109: Parquet detection in ParquetConverter.cpp currently uses
fs::directory_iterator which only checks top-level entries (variable
has_parquet); change it to a recursive scan so nested .parquet files are found.
Replace the fs::directory_iterator(fs::path(std::string(in))) loop with
fs::recursive_directory_iterator (or explicitly walk subdirectories) and test
entry.path().extension() == ".parquet" the same way, or add explicit checks for
known subdirectory names if preferred, ensuring has_parquet is set when any
nested .parquet file is found.

---

Nitpick comments:
In `@src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp`:
- Around line 1066-1068: The try block is immediately followed by an anonymous
inner block (try { then {) which creates visual ambiguity; update the code
around the try in OpenSwathOSWParquetWriter.cpp to either remove the redundant
anonymous brace or keep it but add a short comment clarifying its purpose (e.g.,
/* scope for builder */) and adjust indentation so the inner block is clearly
scoped; reference the try { ... { sequence in the file and modify that region to
make the scope intent explicit.

In `@src/openms/source/FORMAT/ArrowSchemaRegistry.cpp`:
- Around line 322-335: ConsensusFeatureSchema::schema() omits explicit
/*nullable=*/ annotations on its arrow::field calls; update the function so each
arrow::field call (e.g., for UNIQUE_ID, RT, MZ, INTENSITY, CHARGE, QUALITY,
WIDTH, HANDLES, METAVALUES) includes the /*nullable=*/ comment before the type
to match the style used in ProteinSchema::schema() and FeatureSchema::schema(),
ensuring consistency and clarity about nullability.

In `@src/topp/ParquetConverter.cpp`:
- Around line 133-148: The exportFeatureMap_ function currently logs only
start/finish messages; add a ProgressLogger instance to report progress during
the heavy steps: wrap the FeatureXMLFile().load(in, fm) call with ProgressLogger
progress messages (start, setProgress/update if incremental callbacks available,
and finish) and do the same around FeatureMapArrowIO::exportToParquet(fm, out)
so conversion/writing progress is reported; initialize and use a ProgressLogger
(e.g., create ProgressLogger logger; logger.setLogType(this->getLogType()) or
equivalent) before loading and pass updates or call logger.start/stop around the
load and export operations to follow TOPP guidelines.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 07fd4a99-ac4a-4e5f-b084-90edf8a471bd

📥 Commits

Reviewing files that changed from the base of the PR and between 18357db and 5ca433a.

📒 Files selected for processing (7)
  • src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h
  • src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWParquetWriter.cpp
  • src/openms/source/FORMAT/ArrowSchemaRegistry.cpp
  • src/openms/source/FORMAT/ConsensusMapArrowIO.cpp
  • src/openms/source/FORMAT/FeatureMapArrowIO.cpp
  • src/tests/class_tests/openms/source/ArrowSchemaRegistry_test.cpp
  • src/topp/ParquetConverter.cpp
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/openms/source/FORMAT/ConsensusMapArrowIO.cpp
  • src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h

@@ -1423,27 +1429,27 @@ bool FeatureMapArrowIO::importPSMsFromArrow(

// Read columns
auto col_feature_id = getColumn_(tbl, "feature_unique_id");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Consider validating feature_unique_id column type separately.

The feature_unique_id column is not part of PSMSchema (it's added by exportPSMsToArrow), so the schema validation at line 1408 won't verify its type. If an externally-modified Parquet file has a non-int64 feature_unique_id column, the getInt64Value_ call at line 1499 would perform an invalid cast. Consider adding an explicit type check.

Suggested type check
   auto col_feature_id = getColumn_(tbl, "feature_unique_id");
+  if (col_feature_id && col_feature_id->type_id() != arrow::Type::INT64)
+  {
+    OPENMS_LOG_ERROR << "FeatureMapArrowIO: feature_unique_id column has wrong type, expected int64\n";
+    return false;
+  }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/FeatureMapArrowIO.cpp` at line 1431, The code
retrieves the "feature_unique_id" column with getColumn_(tbl,
"feature_unique_id") into col_feature_id but never validates its Arrow type, so
getInt64Value_ could cast incorrectly for externally modified Parquet files; add
an explicit type check after obtaining col_feature_id to ensure its Arrow type
is INT64 (or convertible) and emit a clear error/exception (same style as schema
validation) if not; update logic around getInt64Value_ to only call it when the
column type is verified, referencing getColumn_, col_feature_id, getInt64Value_,
exportPSMsToArrow and PSMSchema to locate the change.

Comment on lines +100 to +109
// Verify directory contains parquet files before treating as import source
bool has_parquet = false;
for (const auto& entry : fs::directory_iterator(fs::path(std::string(in))))
{
if (entry.path().extension() == ".parquet")
{
has_parquet = true;
break;
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Parquet detection may miss nested directory structures.

The current check only looks for .parquet files at the root level of the input directory. However, some Parquet exports (e.g., FeatureMapArrowIO) place files like features.parquet at the root, while others may use subdirectories. Consider also checking for known subdirectory structures or recursively scanning for .parquet files.

Suggested enhancement for broader detection
       bool has_parquet = false;
-      for (const auto& entry : fs::directory_iterator(fs::path(std::string(in))))
+      // Check for parquet files at root or in known subdirectories
+      for (const auto& entry : fs::recursive_directory_iterator(fs::path(std::string(in))))
       {
-        if (entry.path().extension() == ".parquet")
+        if (entry.is_regular_file() && entry.path().extension() == ".parquet")
         {
           has_parquet = true;
           break;
         }
       }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ParquetConverter.cpp` around lines 100 - 109, Parquet detection in
ParquetConverter.cpp currently uses fs::directory_iterator which only checks
top-level entries (variable has_parquet); change it to a recursive scan so
nested .parquet files are found. Replace the
fs::directory_iterator(fs::path(std::string(in))) loop with
fs::recursive_directory_iterator (or explicitly walk subdirectories) and test
entry.path().extension() == ".parquet" the same way, or add explicit checks for
known subdirectory names if preferred, ensuring has_parquet is set when any
nested .parquet file is found.

arrow::json::ArrayFromJSONString() is not exported in Arrow's static
library on Windows, causing LNK2019 unresolved external symbol errors.
Replace all 15 uses with Arrow builder-based array construction using
small helper functions (makeUtf8Array, makeFloat64Array, makeInt32Array,
makeTimestampArray).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@timosachsenberg
timosachsenberg merged commit 4721c83 into develop Mar 23, 2026
40 of 41 checks passed
@timosachsenberg
timosachsenberg deleted the feature/arrow-schema-registry branch March 23, 2026 10:31
github-actions Bot added a commit that referenced this pull request Mar 24, 2026
Add missing changelog entries for:
- QPX directory export replacing -out_feature_qpx with -out_qpx in
  ProteomicsLFQ and IsobaricWorkflow (#8973)
- ProteinGroupArrowExport new library class for QPX pg schema (#8973)
- ArrowSchemaRegistry centralizing Arrow/Parquet schemas with
  strict/subset validation (#8970)

Co-authored-by: Copilot <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Mar 24, 2026
Add missing changelog entries for:
- QPX directory export replacing -out_feature_qpx with -out_qpx in
  ProteomicsLFQ and IsobaricWorkflow (#8973)
- ProteinGroupArrowExport new library class for QPX pg schema (#8973)
- ArrowSchemaRegistry centralizing Arrow/Parquet schemas with
  strict/subset validation (#8970)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Mar 25, 2026
The ParquetConverter TOPP tool was added in #8970 (feat: centralize
Arrow/Parquet schemas in ArrowSchemaRegistry) but was not registered
in the TOPP tools documentation index. Add it under the WITH_PARQUET
conditional block alongside QPXConverter, as it is also a Parquet-
dependent tool.

Co-authored-by: Copilot <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Mar 25, 2026
The ParquetConverter TOPP tool was added in #8970 (feat: centralize
Arrow/Parquet schemas in ArrowSchemaRegistry) but was not registered
in the TOPP tools documentation index. Add it under the WITH_PARQUET
conditional block alongside QPXConverter, as it is also a Parquet-
dependent tool.

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
timosachsenberg added a commit that referenced this pull request Sep 25, 2026
Fixes the documentation findings of the 3.6.0 release-readiness check
that need no decision:
- CHANGELOG: ParquetConverter under New tools (#8970). QuantmsIOConverter,
  the name 3.5.0 users knew, under Removed tools (renamed QPXConverter in
  #8756, removed in #9693), with the tools that write QPX now. The
  removed SwathWizard and FLASHDeconvWizard (#9472). The five pyOpenMS
  types that are no longer bound, and the methods that fail without them.
- TransitionListEvidenceFilter's page includes its command-line and INI
  parameters, ProteomicsLFQ's page has a @brief, and MetaProSIP is
  listed once in the TOPP index.
- The TOPPAS getting-started page no longer points at the removed
  GenericWrapper.
- installation-on-gnu-linux.md links the DEBs of the GitHub release,
  states the glibc 2.38 requirement, installs with apt and drops the
  Qt5/Xenial and ICU troubleshooting. It and
  common-cmake-parameters.doxygen no longer say that Linux/aarch64 has
  no Thermo reader, which #10206 made wrong.


Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

Co-authored-by: Claude <[email protected]>
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.

1 participant