diff options
author | robot-piglet <[email protected]> | 2024-07-08 14:13:17 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2024-07-08 14:21:23 +0300 |
commit | 575887a5e8ab6fe9cf806b350efba4f669f944ad (patch) | |
tree | ddcbad8f1df5003d035ad05a50b307a03e305fbd | |
parent | c611a4d8ab20d3f4ffaac0cc9f8ed9dc137b90ef (diff) |
Intermediate changes
-rw-r--r-- | yt/yt/client/unittests/check_schema_compatibility_ut.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/yt/yt/client/unittests/check_schema_compatibility_ut.cpp b/yt/yt/client/unittests/check_schema_compatibility_ut.cpp index aecb7029fef..8a3f84fe351 100644 --- a/yt/yt/client/unittests/check_schema_compatibility_ut.cpp +++ b/yt/yt/client/unittests/check_schema_compatibility_ut.cpp @@ -34,7 +34,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", EValueType::Int64), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::FullyCompatible, @@ -45,7 +45,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", EValueType::Int64), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::Incompatible, @@ -57,7 +57,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", EValueType::Int64), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::Incompatible, @@ -68,7 +68,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", EValueType::Uint64), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::FullyCompatible, @@ -79,7 +79,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", ESimpleLogicalValueType::Int64), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::RequireValidation, @@ -90,7 +90,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", ESimpleLogicalValueType::Int8), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::FullyCompatible, @@ -101,7 +101,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", OptionalLogicalType(SimpleLogicalType(ESimpleLogicalValueType::Int64))), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::RequireValidation, @@ -112,7 +112,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", SimpleLogicalType(ESimpleLogicalValueType::Int64)), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); // Missing "foo" values are filled with nulls that's OK. EXPECT_EQ( @@ -122,7 +122,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", OptionalLogicalType(SimpleLogicalType(ESimpleLogicalValueType::Int64))), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); // First table might have column foo with value of any type EXPECT_EQ( @@ -132,7 +132,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", OptionalLogicalType(SimpleLogicalType(ESimpleLogicalValueType::Int64))), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); // Missing "foo" values are filled with nulls that's OK. EXPECT_EQ( @@ -142,7 +142,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("foo", ESimpleLogicalValueType::Int64), }), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); EXPECT_EQ( ESchemaCompatibility::Incompatible, @@ -154,7 +154,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TTableSchema({ TColumnSchema("b", ESimpleLogicalValueType::Int64), }, /*strict*/ false), - {.IgnoreSortOrder=true}).first); + {.IgnoreSortOrder = true}).first); // // ignoreSortOrder = false @@ -169,7 +169,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TColumnSchema("a", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), TColumnSchema("b", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), }), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); EXPECT_EQ( ESchemaCompatibility::Incompatible, @@ -182,7 +182,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TColumnSchema("a", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), TColumnSchema("b", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), }), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); EXPECT_EQ( ESchemaCompatibility::FullyCompatible, @@ -195,7 +195,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TColumnSchema("a", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), TColumnSchema("b", ESimpleLogicalValueType::Int64), }), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); EXPECT_EQ( ESchemaCompatibility::Incompatible, @@ -208,7 +208,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TColumnSchema("a", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), TColumnSchema("b", ESimpleLogicalValueType::Int64), }, /*strict*/ true, /*uniqueKeys*/ true), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); EXPECT_EQ( ESchemaCompatibility::FullyCompatible, @@ -221,7 +221,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TColumnSchema("a", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), TColumnSchema("b", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), }, /*strict*/ true, /*uniqueKeys*/ true), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); EXPECT_EQ( ESchemaCompatibility::Incompatible, @@ -234,7 +234,7 @@ TEST_F(TTableSchemaCompatibilityTest, CheckTableSchemaCompatibilityTest) TColumnSchema("b", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), TColumnSchema("a", ESimpleLogicalValueType::Int64, ESortOrder::Ascending), }), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); } TEST_F(TTableSchemaCompatibilityTest, TestCheckTableSchemaCompatibility) @@ -251,7 +251,7 @@ TEST_F(TTableSchemaCompatibilityTest, TestCheckTableSchemaCompatibility) TColumnSchema("key2", ESimpleLogicalValueType::String, ESortOrder::Descending), TColumnSchema("value", ESimpleLogicalValueType::String), }), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); EXPECT_EQ( ESchemaCompatibility::FullyCompatible, @@ -266,7 +266,7 @@ TEST_F(TTableSchemaCompatibilityTest, TestCheckTableSchemaCompatibility) TColumnSchema("key2", ESimpleLogicalValueType::String), TColumnSchema("value", ESimpleLogicalValueType::String), }), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); EXPECT_EQ( ESchemaCompatibility::Incompatible, @@ -281,7 +281,7 @@ TEST_F(TTableSchemaCompatibilityTest, TestCheckTableSchemaCompatibility) TColumnSchema("key2", ESimpleLogicalValueType::String, ESortOrder::Descending), TColumnSchema("value", ESimpleLogicalValueType::String), }), - {.IgnoreSortOrder=false}).first); + {.IgnoreSortOrder = false}).first); } TEST_F(TTableSchemaCompatibilityTest, DeletedColumns) @@ -299,7 +299,7 @@ TEST_F(TTableSchemaCompatibilityTest, DeletedColumns) TColumnSchema("value", ESimpleLogicalValueType::String), TColumnSchema("value1", ESimpleLogicalValueType::String), }, true, true, {}), - {.IgnoreSortOrder=false}); + {.IgnoreSortOrder = false}); EXPECT_EQ(ESchemaCompatibility::Incompatible, comp.first); EXPECT_EQ("Column \"value1\" in output schema was deleted in the input schema", @@ -318,7 +318,7 @@ TEST_F(TTableSchemaCompatibilityTest, DeletedColumns) { TDeletedColumn(TColumnStableName("value1")), }), - {.IgnoreSortOrder=false}); + {.IgnoreSortOrder = false}); EXPECT_EQ(ESchemaCompatibility::Incompatible, comp.first); EXPECT_EQ("Deleted column \"value1\" is missing in the input schema", |