Skip to content

Commit a518a59

Browse files
committed
Test update
1 parent b69ac02 commit a518a59

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

cpp/src/parquet/schema_test.cc

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ TEST(TestLogicalTypeSerialization, Roundtrips) {
23582358

23592359
TEST(TestLogicalTypeSerialization, VariantSpecificationVersion) {
23602360
// Confirm that Variant logical type sets specification_version to 1 in thrift serialization
2361-
auto metadata = PrimitiveNode::Make("metadata", Repetition::REQUIRED, Type::BYTE_ARRAY);
2361+
auto metadata = PrimitiveNode::Make("metadata", Repetition::REQUIRED, Type::BYTE_ARRAY);
23622362
auto value = PrimitiveNode::Make("value", Repetition::REQUIRED, Type::BYTE_ARRAY);
23632363
NodePtr variant_node = GroupNode::Make("variant", Repetition::REQUIRED, {metadata, value},
23642364
LogicalType::Variant());
@@ -2368,17 +2368,12 @@ TEST(TestLogicalTypeSerialization, VariantSpecificationVersion) {
23682368

23692369
// Verify that logicalType is set and is VARIANT
23702370
ASSERT_EQ(elements[0].name, "variant");
2371-
ASSERT_TRUE(elements[0].__isset.logicalType)
2372-
<< "Variant logical type failed to generate a logicalType in thrift";
2373-
ASSERT_TRUE(elements[0].logicalType.__isset.VARIANT)
2374-
<< "Variant logical type did not set VARIANT field in thrift";
2371+
ASSERT_TRUE(elements[0].__isset.logicalType);
2372+
ASSERT_TRUE(elements[0].logicalType.__isset.VARIANT);
23752373

23762374
// Verify that specification_version is set to 1
2377-
ASSERT_TRUE(elements[0].logicalType.VARIANT.__isset.specification_version)
2378-
<< "VariantType specification_version field is not set";
2379-
ASSERT_EQ(elements[0].logicalType.VARIANT.specification_version, 1)
2380-
<< "VariantType specification_version should be 1, got: "
2381-
<< static_cast<int>(elements[0].logicalType.VARIANT.specification_version);
2375+
ASSERT_TRUE(elements[0].logicalType.VARIANT.__isset.specification_version);
2376+
ASSERT_EQ(elements[0].logicalType.VARIANT.specification_version, 1);
23822377
}
23832378

23842379
} // namespace schema

0 commit comments

Comments
 (0)