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

Function CheckNodeRoundtrip

cpp/src/parquet/schema_test.cc:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

FromParquetFunction · 0.85
ToParquetMethod · 0.80
EqualsMethod · 0.45
getMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected