Skip to content

Commit

Permalink
Removed unused include
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyPA committed Oct 23, 2024
1 parent 3996850 commit fe69dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions ydb/core/fq/libs/row_dispatcher/json_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
#include <ydb/core/fq/libs/common/util.h>
#include <ydb/core/fq/libs/row_dispatcher/json_filter.h>

#include <cxxabi.h>


namespace {

using TCallback = NFq::TJsonFilter::TCallback;
Expand Down
4 changes: 3 additions & 1 deletion ydb/core/fq/libs/row_dispatcher/json_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ class TJsonParser::TImpl {
}
rowId++;
}
Y_ENSURE(rowId == Buffer.NumberValues, "Unexpected number of json documents");
if (rowId < Buffer.NumberValues) {
throw yexception() << "Failed to parse json messages, expected " << Buffer.NumberValues << " json rows but got " << rowId;
}

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

0 comments on commit fe69dcb

Please sign in to comment.