We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 050e47a commit 3031d7bCopy full SHA for 3031d7b
ydb/library/yql/providers/pq/async_io/dq_pq_rd_read_actor.cpp
@@ -762,7 +762,10 @@ void TDqPqRdReadActor::Handle(NFq::TEvRowDispatcher::TEvMessageBatch::TPtr& ev)
762
ui64 bytes = 0;
763
for (const auto& message : ev->Get()->Record.GetMessages()) {
764
const auto& offsets = message.GetOffsets();
765
- YQL_ENSURE(!offsets.empty(), "Expected non empty message batch");
+ if (offsets.empty()) {
766
+ Stop(NDqProto::StatusIds::INTERNAL_ERROR, {TIssue("Got unexpected empty batch from row dispatcher")});
767
+ return;
768
+ }
769
770
activeBatch.Data.emplace_back(ev->Get()->GetPayload(message.GetPayloadId()));
771
bytes += activeBatch.Data.back().GetSize();
0 commit comments