| 1954 | class TestSchemaElementConstruction : public ::testing::Test { |
| 1955 | public: |
| 1956 | TestSchemaElementConstruction* Reconstruct( |
| 1957 | const SchemaElementConstructionArguments& c) { |
| 1958 | // Make node, create serializable Thrift object from it ... |
| 1959 | node_ = PrimitiveNode::Make(c.name, Repetition::REQUIRED, c.logical_type, |
| 1960 | c.physical_type, c.physical_length); |
| 1961 | element_.reset(new format::SchemaElement); |
| 1962 | node_->ToParquet(element_.get()); |
| 1963 | |
| 1964 | // ... then set aside some values for later inspection. |
| 1965 | name_ = c.name; |
| 1966 | expect_converted_type_ = c.expect_converted_type; |
| 1967 | converted_type_ = c.converted_type; |
| 1968 | expect_logicalType_ = c.expect_logicalType; |
| 1969 | check_logicalType_ = c.check_logicalType; |
| 1970 | return this; |
| 1971 | } |
| 1972 | |
| 1973 | TestSchemaElementConstruction* LegacyReconstruct( |
| 1974 | const LegacySchemaElementConstructionArguments& c) { |