@@ -955,45 +955,45 @@ INSTANTIATE_TEST_SUITE_P(
955955 CreateTableRequestParam{
956956 .test_name = " MinimalRequest" ,
957957 .expected_json_str =
958- R"( {"name":"my_table","schema":{"type":"struct","fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]}})" ,
958+ R"( {"name":"my_table","schema":{"type":"struct","schema-id":0," fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]}})" ,
959959 .model = {.name = " my_table" , .schema = MakeSimpleSchema ()}},
960960 // Request with location
961961 CreateTableRequestParam{
962962 .test_name = " WithLocation" ,
963963 .expected_json_str =
964- R"( {"name":"my_table","schema":{"type":"struct","fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"location":"s3://bucket/warehouse/my_table"})" ,
964+ R"( {"name":"my_table","schema":{"type":"struct","schema-id":0," fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"location":"s3://bucket/warehouse/my_table"})" ,
965965 .model = {.name = " my_table" ,
966966 .location = " s3://bucket/warehouse/my_table" ,
967967 .schema = MakeSimpleSchema ()}},
968968 // Request with properties
969969 CreateTableRequestParam{
970970 .test_name = " WithProperties" ,
971971 .expected_json_str =
972- R"( {"name":"my_table","schema":{"type":"struct","fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"properties":{"owner":"alice","version":"1.0"}})" ,
972+ R"( {"name":"my_table","schema":{"type":"struct","schema-id":0," fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"properties":{"owner":"alice","version":"1.0"}})" ,
973973 .model = {.name = " my_table" ,
974974 .schema = MakeSimpleSchema (),
975975 .properties = {{" owner" , " alice" }, {" version" , " 1.0" }}}},
976976 // Request with stage_create = true
977977 CreateTableRequestParam{
978978 .test_name = " WithStageCreate" ,
979979 .expected_json_str =
980- R"( {"name":"my_table","schema":{"type":"struct","fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"stage-create":true})" ,
980+ R"( {"name":"my_table","schema":{"type":"struct","schema-id":0," fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"stage-create":true})" ,
981981 .model = {.name = " my_table" ,
982982 .schema = MakeSimpleSchema (),
983983 .stage_create = true }},
984984 // Request with partition_spec (unpartitioned)
985985 CreateTableRequestParam{
986986 .test_name = " WithUnpartitionedSpec" ,
987987 .expected_json_str =
988- R"( {"name":"my_table","schema":{"type":"struct","fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"partition-spec":{"spec-id":0,"fields":[]}})" ,
988+ R"( {"name":"my_table","schema":{"type":"struct","schema-id":0," fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"partition-spec":{"spec-id":0,"fields":[]}})" ,
989989 .model = {.name = " my_table" ,
990990 .schema = MakeSimpleSchema (),
991991 .partition_spec = PartitionSpec::Unpartitioned ()}},
992992 // Request with write_order (unsorted)
993993 CreateTableRequestParam{
994994 .test_name = " WithUnsortedOrder" ,
995995 .expected_json_str =
996- R"( {"name":"my_table","schema":{"type":"struct","fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"write-order":{"order-id":0,"fields":[]}})" ,
996+ R"( {"name":"my_table","schema":{"type":"struct","schema-id":0," fields":[{"id":1,"name":"id","type":"int","required":true},{"id":2,"name":"data","type":"string","required":false}]},"write-order":{"order-id":0,"fields":[]}})" ,
997997 .model = {.name = " my_table" ,
998998 .schema = MakeSimpleSchema (),
999999 .write_order = SortOrder::Unsorted ()}}),
0 commit comments