MCPcopy Create free account
hub / github.com/apache/arrow / CheckNodeRoundtrip

Function CheckNodeRoundtrip

cpp/src/parquet/schema_test.cc:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74template <typename NodeType>
75static void CheckNodeRoundtrip(const Node& node) {
76 format::SchemaElement serialized;
77 node.ToParquet(&serialized);
78 std::unique_ptr<Node> recovered = NodeType::FromParquet(&serialized);
79 ASSERT_TRUE(node.Equals(recovered.get()))
80 << "Recovered node not equivalent to original node constructed "
81 << "with logical type " << node.logical_type()->ToString() << " got "
82 << recovered->logical_type()->ToString();
83}
84
85static void ConfirmPrimitiveNodeRoundtrip(
86 const std::shared_ptr<const LogicalType>& logical_type, Type::type physical_type,

Callers

nothing calls this directly

Calls 4

ToParquetMethod · 0.80
EqualsMethod · 0.45
getMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected