@@ -60,6 +60,7 @@ bool TProtoBuilder::CanBuildResultSet() const {
60
60
}
61
61
62
62
TString TProtoBuilder::BuildYson (TVector<NYql::NDq::TDqSerializedBatch>&& rows, ui64 maxBytesLimit) {
63
+ TThrowingBindTerminator t;
63
64
ui64 size = 0 ;
64
65
TStringStream out;
65
66
NYson::TYsonWriter writer ((IOutputStream*)&out);
@@ -82,13 +83,15 @@ TString TProtoBuilder::BuildYson(TVector<NYql::NDq::TDqSerializedBatch>&& rows,
82
83
}
83
84
84
85
bool TProtoBuilder::WriteYsonData (NYql::NDq::TDqSerializedBatch&& data, const std::function<bool (const TString& rawYson)>& func) {
86
+ TThrowingBindTerminator t;
85
87
return WriteData (std::move (data), [&](const NYql::NUdf::TUnboxedValuePod& value) {
86
88
auto rowYson = NCommon::WriteYsonValue (value, ResultType, ColumnOrder.empty () ? nullptr : &ColumnOrder);
87
89
return func (rowYson);
88
90
});
89
91
}
90
92
91
93
bool TProtoBuilder::WriteData (NYql::NDq::TDqSerializedBatch&& data, const std::function<bool (const NYql::NUdf::TUnboxedValuePod& value)>& func) {
94
+ TThrowingBindTerminator t;
92
95
TGuard<TScopedAlloc> allocGuard (Alloc);
93
96
94
97
TMemoryUsageInfo memInfo (" ProtoBuilder" );
@@ -106,6 +109,7 @@ bool TProtoBuilder::WriteData(NYql::NDq::TDqSerializedBatch&& data, const std::f
106
109
}
107
110
108
111
bool TProtoBuilder::WriteData (TVector<NYql::NDq::TDqSerializedBatch>&& rows, const std::function<bool (const NYql::NUdf::TUnboxedValuePod& value)>& func) {
112
+ TThrowingBindTerminator t;
109
113
TGuard<TScopedAlloc> allocGuard (Alloc);
110
114
111
115
TMemoryUsageInfo memInfo (" ProtoBuilder" );
0 commit comments