Skip to content

Commit 85ba858

Browse files
committed
fix uuid optional wrapping
1 parent 74f2ece commit 85ba858

File tree

1 file changed

+8
-28
lines changed

1 file changed

+8
-28
lines changed

internal/params/optional_test.go

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -368,23 +368,13 @@ func TestOptional(t *testing.T) {
368368

369369
expected: expected{
370370
Type: &Ydb.Type{
371-
Type: &Ydb.Type_OptionalType{
372-
OptionalType: &Ydb.OptionalType{
373-
Item: &Ydb.Type{
374-
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
375-
},
376-
},
377-
},
371+
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
378372
},
379373
Value: &Ydb.Value{
380-
Value: &Ydb.Value_NestedValue{
381-
NestedValue: &Ydb.Value{
382-
Value: &Ydb.Value_Low_128{
383-
Low_128: 506660481424032516,
384-
},
385-
High_128: 1157159078456920585,
386-
},
374+
Value: &Ydb.Value_Low_128{
375+
Low_128: 506660481424032516,
387376
},
377+
High_128: 1157159078456920585,
388378
},
389379
},
390380
},
@@ -394,23 +384,13 @@ func TestOptional(t *testing.T) {
394384

395385
expected: expected{
396386
Type: &Ydb.Type{
397-
Type: &Ydb.Type_OptionalType{
398-
OptionalType: &Ydb.OptionalType{
399-
Item: &Ydb.Type{
400-
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
401-
},
402-
},
403-
},
387+
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
404388
},
405389
Value: &Ydb.Value{
406-
Value: &Ydb.Value_NestedValue{
407-
NestedValue: &Ydb.Value{
408-
Value: &Ydb.Value_Low_128{
409-
Low_128: 651345242494996240,
410-
},
411-
High_128: 72623859790382856,
412-
},
390+
Value: &Ydb.Value_Low_128{
391+
Low_128: 651345242494996240,
413392
},
393+
High_128: 72623859790382856,
414394
},
415395
},
416396
},

0 commit comments

Comments
 (0)