| 71 | |
| 72 | template <typename NodeType> |
| 73 | static 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 | |
| 83 | static void ConfirmPrimitiveNodeRoundtrip( |
| 84 | const std::shared_ptr<const LogicalType>& logical_type, Type::type physical_type, |
nothing calls this directly
no test coverage detected