198529 {
198530 if (source_offset >= source.size()) {
198531 if (!exhausted) {
198532 source.Reset();
198533
198534 InterruptState interrupt_state;
198535 OperatorSourceInput source_input {global_state, *local_state, interrupt_state};
198536 auto source_result = SourceResultType::HAVE_MORE_OUTPUT;
198537 while (source_result == SourceResultType::HAVE_MORE_OUTPUT && source.size() == 0) {
198538
198539 source_result = table.GetData(context, source, source_input);
198540 if (source_result == SourceResultType::BLOCKED) {
198541 throw NotImplementedException(
198542 "Unexpected interrupt from table Source in PositionalTableScanner refill");
198543 }
198544 }
198545 }
198546 source_offset = 0;
198547 }
198548
198549 const auto available = source.size() - source_offset;
198550 if (!available) {
198551 if (!exhausted) {
198552 source.Reset();
198553 for (
idx_t i = 0; i < source.ColumnCount(); ++i) {
198554 auto &vec = source.data[i];
198555 vec.SetVectorType(VectorType::CONSTANT_VECTOR);
198556 ConstantVector::SetNull(vec, true);
198557 }
198558 exhausted = true;
198559 }
198560 }
198561
198562 return available;
198563 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237