Skip to content

Commit

Permalink
Fixed json_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyPA committed Dec 7, 2024
1 parent 259bbb9 commit 092c743
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct TJsonParserBuffer {

class TColumnParser {
public:
const std::string Name; // User for column index by std::string_view
const std::string Name; // Used for column index by std::string_view
const TString TypeYson;

public:
Expand Down Expand Up @@ -366,10 +366,13 @@ class TJsonParser : public TTopicParserBase {
ParseBuffer();
}
}
if (Buffer.IsReady() && !Config.LatencyLimit) {
ParseBuffer();
} else {
LOG_ROW_DISPATCHER_TRACE("Collecting data to parse, skip parsing, current buffer size: " << Buffer.GetSize());

if (Buffer.IsReady()) {
if (!Config.LatencyLimit) {
ParseBuffer();
} else {
LOG_ROW_DISPATCHER_TRACE("Collecting data to parse, skip parsing, current buffer size: " << Buffer.GetSize());
}
}
}

Expand Down

0 comments on commit 092c743

Please sign in to comment.