| 1903 | class TestSchemaElementConstruction : public ::testing::Test { |
| 1904 | public: |
| 1905 | TestSchemaElementConstruction* Reconstruct( |
| 1906 | const SchemaElementConstructionArguments& c) { |
| 1907 | // Make node, create serializable Thrift object from it ... |
| 1908 | node_ = PrimitiveNode::Make(c.name, Repetition::REQUIRED, c.logical_type, |
| 1909 | c.physical_type, c.physical_length); |
| 1910 | element_.reset(new format::SchemaElement); |
| 1911 | node_->ToParquet(element_.get()); |
| 1912 | |
| 1913 | // ... then set aside some values for later inspection. |
| 1914 | name_ = c.name; |
| 1915 | expect_converted_type_ = c.expect_converted_type; |
| 1916 | converted_type_ = c.converted_type; |
| 1917 | expect_logicalType_ = c.expect_logicalType; |
| 1918 | check_logicalType_ = c.check_logicalType; |
| 1919 | return this; |
| 1920 | } |
| 1921 | |
| 1922 | TestSchemaElementConstruction* LegacyReconstruct( |
| 1923 | const LegacySchemaElementConstructionArguments& c) { |