MCPcopy Create free account
hub / github.com/apache/impala / NextProbeRowBatchFromChild

Method NextProbeRowBatchFromChild

be/src/exec/iceberg-delete-node.cc:152–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152Status IcebergDeleteNode::NextProbeRowBatchFromChild(
153 RuntimeState* state, RowBatch* out_batch, bool* eos) {
154 DCHECK_ENUM_EQ(probe_state_, ProbeState::PROBING_END_BATCH);
155 DCHECK(probe_batch_pos_ == probe_batch_->num_rows() || probe_batch_pos_ == -1);
156 *eos = false;
157 do {
158 // Loop until we find a non-empty row batch.
159 probe_batch_->TransferResourceOwnership(out_batch);
160 if (out_batch->AtCapacity()) {
161 // This out batch is full. Need to return it before getting the next batch.
162 probe_batch_pos_ = -1;
163 return Status::OK();
164 }
165 if (probe_side_eos_) {
166 probe_batch_pos_ = -1;
167 *eos = true;
168 return Status::OK();
169 }
170 RETURN_IF_ERROR(child(0)->GetNext(state, probe_batch_.get(), &probe_side_eos_));
171 COUNTER_ADD(probe_row_counter_, probe_batch_->num_rows());
172 } while (probe_batch_->num_rows() == 0);
173
174 ResetForProbe();
175 return Status::OK();
176}
177
178Status IcebergDeleteNode::ProcessProbeBatch(RowBatch* out_batch) {
179 DCHECK_ENUM_EQ(probe_state_, ProbeState::PROBING_IN_BATCH);

Callers

nothing calls this directly

Calls 6

OKFunction · 0.85
getMethod · 0.65
num_rowsMethod · 0.45
AtCapacityMethod · 0.45
GetNextMethod · 0.45

Tested by

no test coverage detected