Skip to content

Commit c4bb730

Browse files
committed
Removed unused include
1 parent eaf8f1c commit c4bb730

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ydb/core/fq/libs/row_dispatcher/json_filter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
#include <ydb/core/fq/libs/common/util.h>
1212
#include <ydb/core/fq/libs/row_dispatcher/json_filter.h>
1313

14-
#include <cxxabi.h>
15-
16-
1714
namespace {
1815

1916
using TCallback = NFq::TJsonFilter::TCallback;

ydb/core/fq/libs/row_dispatcher/json_parser.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ class TJsonParser::TImpl {
179179
}
180180
rowId++;
181181
}
182-
Y_ENSURE(rowId == Buffer.NumberValues, "Unexpected number of json documents");
182+
if (rowId < Buffer.NumberValues) {
183+
throw yexception() << "Failed to parse json messages, expected " << Buffer.NumberValues << " json rows but got " << rowId;
184+
}
183185

184186
for (size_t i = 0; i < Columns.size(); ++i) {
185187
ResizeColumn(Columns[i], ParsedValues[i], Buffer.NumberValues);

0 commit comments

Comments
 (0)