@@ -863,6 +863,114 @@ func TestSet(t *testing.T) {
863863 },
864864 },
865865 },
866+ {
867+ name : xtest .CurrentFileLine (),
868+ builder : Builder {}.Param ("$x" ).BeginSet ().Add ().TzDatetime (time .Unix (123456789 , 456 ).UTC ()).EndSet (),
869+ params : map [string ]* Ydb.TypedValue {
870+ "$x" : {
871+ Type : & Ydb.Type {
872+ Type : & Ydb.Type_DictType {
873+ DictType : & Ydb.DictType {
874+ Key : & Ydb.Type {
875+ Type : & Ydb.Type_TypeId {
876+ TypeId : Ydb .Type_TZ_DATETIME ,
877+ },
878+ },
879+ Payload : & Ydb.Type {
880+ Type : & Ydb.Type_VoidType {},
881+ },
882+ },
883+ },
884+ },
885+ Value : & Ydb.Value {
886+ Pairs : []* Ydb.ValuePair {
887+ {
888+ Key : & Ydb.Value {
889+ Value : & Ydb.Value_TextValue {
890+ TextValue : "1973-11-29T21:33:09Z" ,
891+ },
892+ },
893+ Payload : & Ydb.Value {
894+ Value : & Ydb.Value_NullFlagValue {},
895+ },
896+ },
897+ },
898+ },
899+ },
900+ },
901+ },
902+ {
903+ name : xtest .CurrentFileLine (),
904+ builder : Builder {}.Param ("$x" ).BeginSet ().Add ().TzDate (time .Unix (123456789 , 456 ).UTC ()).EndSet (),
905+ params : map [string ]* Ydb.TypedValue {
906+ "$x" : {
907+ Type : & Ydb.Type {
908+ Type : & Ydb.Type_DictType {
909+ DictType : & Ydb.DictType {
910+ Key : & Ydb.Type {
911+ Type : & Ydb.Type_TypeId {
912+ TypeId : Ydb .Type_TZ_DATE ,
913+ },
914+ },
915+ Payload : & Ydb.Type {
916+ Type : & Ydb.Type_VoidType {},
917+ },
918+ },
919+ },
920+ },
921+ Value : & Ydb.Value {
922+ Pairs : []* Ydb.ValuePair {
923+ {
924+ Key : & Ydb.Value {
925+ Value : & Ydb.Value_TextValue {
926+ TextValue : "1973-11-29" ,
927+ },
928+ },
929+ Payload : & Ydb.Value {
930+ Value : & Ydb.Value_NullFlagValue {},
931+ },
932+ },
933+ },
934+ },
935+ },
936+ },
937+ },
938+ {
939+ name : xtest .CurrentFileLine (),
940+ builder : Builder {}.Param ("$x" ).BeginSet ().Add ().TzTimestamp (time .Unix (123456789 , 456 ).UTC ()).EndSet (),
941+ params : map [string ]* Ydb.TypedValue {
942+ "$x" : {
943+ Type : & Ydb.Type {
944+ Type : & Ydb.Type_DictType {
945+ DictType : & Ydb.DictType {
946+ Key : & Ydb.Type {
947+ Type : & Ydb.Type_TypeId {
948+ TypeId : Ydb .Type_TZ_TIMESTAMP ,
949+ },
950+ },
951+ Payload : & Ydb.Type {
952+ Type : & Ydb.Type_VoidType {},
953+ },
954+ },
955+ },
956+ },
957+ Value : & Ydb.Value {
958+ Pairs : []* Ydb.ValuePair {
959+ {
960+ Key : & Ydb.Value {
961+ Value : & Ydb.Value_TextValue {
962+ TextValue : "1973-11-29T21:33:09.000000Z" ,
963+ },
964+ },
965+ Payload : & Ydb.Value {
966+ Value : & Ydb.Value_NullFlagValue {},
967+ },
968+ },
969+ },
970+ },
971+ },
972+ },
973+ },
866974 } {
867975 t .Run (tt .name , func (t * testing.T ) {
868976 a := allocator .New ()
0 commit comments