12#include <OpenMS/OpenMSConfig.h>
33 double acceptable_ratio = 1.0;
35 double acceptable_absdiff = 0.0;
37 bool schema_only =
false;
39 bool unordered_lists =
false;
56 bool compare_identity_columns =
false;
83 double max_ratio = 1.0;
85 double max_absdiff = 0.0;
124 const std::string& file_2,
141 const std::string& view,
166 const std::string& out_file,
Primary-key-aware, order-insensitive, tolerant comparison of Parquet tables.
Definition ParquetTableComparator.h:109
static ParquetDiffResult validate(const std::string &file, const std::string &view, const ParquetDiffSettings &settings)
Check one Parquet file against a built-in QPX schema.
static std::vector< std::string > qpxIdentityColumns(const std::string &view)
The opaque identity and cross-reference columns of a QPX view.
static ParquetDiffResult compare(const std::string &file_1, const std::string &file_2, const ParquetDiffSettings &settings)
Compare two Parquet files.
static bool dumpToTsv(const std::string &file, const std::string &out_file, const ParquetDiffSettings &settings)
Write a Parquet table out as TSV, one row per line, sorted by primary key.
static std::vector< std::string > qpxPrimaryKey(const std::string &view)
The primary key of a QPX view.
static std::string viewFromFileType(const std::string &file_type)
Map a QPX file_type metadata value to a view name.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::vector< std::string > value_errors
Per-cell differences, prefixed by the primary key of the row they occur in.
Definition ParquetTableComparator.h:74
std::vector< std::string > ignore_columns
Columns excluded from value comparison (they are still schema-checked).
Definition ParquetTableComparator.h:31
std::vector< std::string > primary_key
Columns forming the primary key. Empty: derive from the file's QPX file_type metadata.
Definition ParquetTableComparator.h:29
std::vector< std::string > schema_errors
Missing/extra columns, differing Arrow types, differing nullability.
Definition ParquetTableComparator.h:70
std::vector< std::string > primary_key_used
The primary key actually used, whether supplied or auto-detected.
Definition ParquetTableComparator.h:88
std::vector< std::string > key_errors
Duplicate primary keys, and keys present in only one of the two tables.
Definition ParquetTableComparator.h:72
Outcome of a table comparison.
Definition ParquetTableComparator.h:66
Settings for ParquetTableComparator.
Definition ParquetTableComparator.h:27