array:std::arrayatomic:std::atomicbitset:std::bitsetfundamental: fundamental column typesmap:std::mapwith all[Split]Index{32,64}column typesmultimap:std::multimapwith all[Split]Index{32,64}column typesmultiset:std::multisetwith all[Split]Index{32,64}column typesoptional:std::optionalwith different element typespair:std::pairwith different element typesRVec:ROOT::RVecwith all[Split]Index{32,64}column typesset:std::setwith all[Split]Index{32,64}column typesstring:std::stringwith all[Split]Index{32,64}column typestuple:std::tuplewith different element typesunique_ptr:std::unique_ptrwith different element typesunordered_map:std::unordered_mapwith all[Split]Index{32,64}column typesunordered_multimap:std::unordered_multimapwith all[Split]Index{32,64}column typesunordered_multiset:std::unordered_multisetwith all[Split]Index{32,64}column typesunordered_set:std::unordered_setwith all[Split]Index{32,64}column typesuser: user-defined types, such as classes and enumsvariant:std::variantwithSwitchcolumn typevector:std::vectorwith all[Split]Index{32,64}column types
In the RNTuple Validation Suite, we cannot test all possible nesting combinations of supported types. Furthermore, we assume that the column encoding on disk is orthogonal to the nesting of fields. We therefore cover a strategic selection based on field structural roles that is described below. Implementations should exercise specific details related to nesting of types in their own unit tests. In particular, this includes any optimization that contradicts the assumptions made above.
For leaf fields, we test all possible column encodings in a top-level field.
For collection fields (for example std::vector), we want to test all [Split]Index{32,64} column types.
If C is a container type with a single item field, we test the following nestings:
C<std::int32_t>C<C<std::int32_t>>
If M is an dictionary container type, we test the following nestings:
M<std::string, std::int32_t>M<M<std::string, std::int32_t>, M<std::string, std::int32_t>>
For record fields of type R (for example std::tuple), we want to test nesting with other field structural roles:
- Leaf fields of types
std::int32_tandstd::string(the latter is particular because it has variable length and two columns) - Variant field of type
std::variant<std::int32_t, std::string> - Collection field of type
std::vector<std::int32_t> - Record field of the type
Ritself
In addition, we test the nesting of the record type inside a collection field, std::vector<R>.
As there is only one type that results in this field structural role, the reader is referred to the variant directory.