Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ydb/core/kqp/runtime/kqp_read_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class TKqpReadActor : public TActorBootstrapped<TKqpReadActor>, public NYql::NDq
}

bool StartShards() {
const ui32 maxAllowedInFlight = Settings->GetSorted() ? 1 : MaxInFlight;
const ui32 maxAllowedInFlight = Settings->GetSorted() || Settings->GetIsBatch() ? 1 : MaxInFlight;
CA_LOG_D("effective maxinflight " << maxAllowedInFlight << " sorted " << Settings->GetSorted());
bool isFirst = true;
while (!PendingShards.Empty() && RunningReads() + 1 <= maxAllowedInFlight) {
Expand Down Expand Up @@ -1069,7 +1069,7 @@ class TKqpReadActor : public TActorBootstrapped<TKqpReadActor>, public NYql::NDq
ui64 seqNo = record.GetSeqNo();
Reads[id].RegisterMessage(msg);

if (Settings->GetIsBatch() && msg.GetRowsCount() > 0) {
if (Settings->GetIsBatch() && msg.GetRowsCount() > 0 && BatchOperationMaxRow.GetCells().empty()) {
auto cells = msg.GetCells(msg.GetRowsCount() - 1);
BatchOperationMaxRow = TSerializedCellVec{cells};
}
Expand Down
Loading