1
1
#include " yql_codec.h"
2
- #include " yql_restricted_yson.h"
3
2
#include " yql_codec_type_flags.h"
4
3
5
4
#include < ydb/library/yql/core/yql_expr_type_annotation.h>
6
-
7
5
#include < ydb/library/yql/public/decimal/yql_decimal.h>
8
6
#include < ydb/library/yql/public/decimal/yql_decimal_serialize.h>
9
7
#include < ydb/library/yql/minikql/mkql_node_cast.h>
10
8
#include < ydb/library/yql/minikql/mkql_string_util.h>
11
9
#include < ydb/library/yql/minikql/mkql_type_builder.h>
12
10
#include < ydb/library/yql/minikql/computation/mkql_computation_node_pack.h>
11
+ #include < ydb/library/yql/public/result_format/yql_restricted_yson.h>
13
12
14
13
#include < ydb/library/yql/utils/yql_panic.h>
15
14
#include < ydb/library/yql/utils/swap_bytes.h>
@@ -33,7 +32,7 @@ using namespace NKikimr;
33
32
using namespace NKikimr ::NMiniKQL;
34
33
using namespace NYson ::NDetail;
35
34
36
- void WriteYsonValueImpl (TYsonResultWriter& writer, const NUdf::TUnboxedValuePod& value, TType* type,
35
+ void WriteYsonValueImpl (NResult:: TYsonResultWriter& writer, const NUdf::TUnboxedValuePod& value, TType* type,
37
36
const TVector<ui32>* structPositions) {
38
37
// Result format
39
38
switch (type->GetKind ()) {
@@ -107,7 +106,7 @@ void WriteYsonValueImpl(TYsonResultWriter& writer, const NUdf::TUnboxedValuePod&
107
106
return ;
108
107
}
109
108
case NUdf::EDataSlot::Yson:
110
- EncodeRestrictedYson (writer, value.AsStringRef ());
109
+ NResult:: EncodeRestrictedYson (writer, value.AsStringRef ());
111
110
return ;
112
111
case NUdf::EDataSlot::Date:
113
112
writer.OnUint64Scalar (value.Get <ui16>());
@@ -263,7 +262,7 @@ void WriteYsonValueImpl(TYsonResultWriter& writer, const NUdf::TUnboxedValuePod&
263
262
void WriteYsonValue (NYson::TYsonConsumerBase& writer, const NUdf::TUnboxedValuePod& value, TType* type,
264
263
const TVector<ui32>* structPositions)
265
264
{
266
- TYsonResultWriter resultWriter (writer);
265
+ NResult:: TYsonResultWriter resultWriter (writer);
267
266
WriteYsonValueImpl (resultWriter, value, type, structPositions);
268
267
}
269
268
@@ -1030,7 +1029,7 @@ NUdf::TUnboxedValue ReadYsonValue(TType* type, ui64 nativeYtTypeFlags,
1030
1029
return NUdf::TUnboxedValue (MakeString (NUdf::TStringRef (yson)));
1031
1030
}
1032
1031
1033
- TString decodedYson = DecodeRestrictedYson (TStringBuf (yson.data (), yson.size ()), NYson::EYsonFormat::Text);
1032
+ TString decodedYson = NResult:: DecodeRestrictedYson (TStringBuf (yson.data (), yson.size ()), NYson::EYsonFormat::Text);
1034
1033
return NUdf::TUnboxedValue (MakeString (NUdf::TStringRef (decodedYson)));
1035
1034
}
1036
1035
@@ -1436,7 +1435,7 @@ NUdf::TUnboxedValue ReadYsonValue(TType* type, ui64 nativeYtTypeFlags,
1436
1435
}
1437
1436
1438
1437
auto nextString = ReadNextString (cmd, buf);
1439
- YQL_ENSURE (nextString == TYsonResultWriter::VoidString, " Expected Void" );
1438
+ YQL_ENSURE (nextString == NResult:: TYsonResultWriter::VoidString, " Expected Void" );
1440
1439
return NUdf::TUnboxedValuePod::Void ();
1441
1440
}
1442
1441
0 commit comments