Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::PhysicalBatchInsert Class Reference
Inheritance diagram for duckdb::PhysicalBatchInsert:
Collaboration diagram for duckdb::PhysicalBatchInsert:

Public Member Functions

 PhysicalBatchInsert (PhysicalPlan &physical_plan, vector< LogicalType > types, TableCatalogEntry &table, vector< unique_ptr< BoundConstraint > > bound_constraints, idx_t estimated_cardinality)
 INSERT INTO.
 PhysicalBatchInsert (PhysicalPlan &physical_plan, LogicalOperator &op, SchemaCatalogEntry &schema, unique_ptr< BoundCreateTableInfo > info, idx_t estimated_cardinality)
 CREATE TABLE AS.
SourceResultType GetDataInternal (ExecutionContext &context, DataChunk &chunk, OperatorSourceInput &input) const override
bool IsSource () const override
unique_ptr< GlobalSinkState > GetGlobalSinkState (ClientContext &context) const override
unique_ptr< LocalSinkState > GetLocalSinkState (ExecutionContext &context) const override
SinkNextBatchType NextBatch (ExecutionContext &context, OperatorSinkNextBatchInput &input) const override
SinkResultType Sink (ExecutionContext &context, DataChunk &chunk, OperatorSinkInput &input) const override
SinkCombineResultType Combine (ExecutionContext &context, OperatorSinkCombineInput &input) const override
SinkFinalizeType Finalize (Pipeline &pipeline, Event &event, ClientContext &context, OperatorSinkFinalizeInput &input) const override
OperatorPartitionInfo RequiredPartitionInfo () const override
bool IsSink () const override
bool ParallelSink () const override
Public Member Functions inherited from duckdb::PhysicalOperator
 PhysicalOperator (PhysicalPlan &physical_plan, PhysicalOperatorType type, vector< LogicalType > types, idx_t estimated_cardinality)
 PhysicalOperator (const PhysicalOperator &other)=delete
 Deleted copy constructors.
PhysicalOperator & operator= (const PhysicalOperator &)=delete
virtual string GetName () const
virtual InsertionOrderPreservingMap< string > ParamsToString () const
virtual string ToString (ExplainFormat format=ExplainFormat::DEFAULT) const
void Print () const
virtual vector< const_reference< PhysicalOperator > > GetChildren () const
const vector< LogicalType > & GetTypes () const
 Return a vector of the types that will be returned by this operator.
virtual bool Equals (const PhysicalOperator &other) const
idx_t EstimatedThreadCount () const
 Functions to help decide how to set up pipeline dependencies.
bool CanSaturateThreads (ClientContext &context) const
virtual void Verify ()
virtual unique_ptr< OperatorState > GetOperatorState (ExecutionContext &context) const
virtual unique_ptr< GlobalOperatorState > GetGlobalOperatorState (ClientContext &context) const
virtual OperatorResultType Execute (ExecutionContext &context, DataChunk &input, DataChunk &chunk, GlobalOperatorState &gstate, OperatorState &state) const
virtual OperatorFinalizeResultType FinalExecute (ExecutionContext &context, DataChunk &chunk, GlobalOperatorState &gstate, OperatorState &state) const
virtual OperatorFinalResultType OperatorFinalize (Pipeline &pipeline, Event &event, ClientContext &context, OperatorFinalizeInput &input) const
virtual bool ParallelOperator () const
virtual bool RequiresFinalExecute () const
virtual bool RequiresOperatorFinalize () const
virtual OrderPreservationType OperatorOrder () const
 The influence the operator has on order (insertion order means no influence).
virtual unique_ptr< LocalSourceState > GetLocalSourceState (ExecutionContext &context, GlobalSourceState &gstate) const
virtual unique_ptr< GlobalSourceState > GetGlobalSourceState (ClientContext &context) const
SourceResultType GetData (ExecutionContext &context, DataChunk &chunk, OperatorSourceInput &input) const
virtual OperatorPartitionData GetPartitionData (ExecutionContext &context, DataChunk &chunk, GlobalSourceState &gstate, LocalSourceState &lstate, const OperatorPartitionInfo &partition_info) const
virtual bool ParallelSource () const
virtual bool SupportsPartitioning (const OperatorPartitionInfo &partition_info) const
virtual OrderPreservationType SourceOrder () const
 The type of order emitted by the operator (as a source).
virtual ProgressData GetProgress (ClientContext &context, GlobalSourceState &gstate) const
 Returns the current progress percentage, or a negative value if progress bars are not supported.
virtual ProgressData GetSinkProgress (ClientContext &context, GlobalSinkState &gstate, const ProgressData source_progress) const
 Returns the current progress percentage, or a negative value if progress bars are not supported.
virtual InsertionOrderPreservingMap< string > ExtraSourceParams (GlobalSourceState &gstate, LocalSourceState &lstate) const
virtual void PrepareFinalize (ClientContext &context, GlobalSinkState &sink_state) const
virtual bool SinkOrderDependent () const
virtual vector< const_reference< PhysicalOperator > > GetSources () const
bool AllSourcesSupportBatchIndex () const
virtual void BuildPipelines (Pipeline &current, MetaPipeline &meta_pipeline)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

optional_ptr< TableCatalogEntry > insert_table
 The table to insert into.
vector< LogicalType > insert_types
 The insert types.
vector< unique_ptr< BoundConstraint > > bound_constraints
 The bound constraints for the table.
optional_ptr< SchemaCatalogEntry > schema
 Table schema, in case of CREATE TABLE AS.
unique_ptr< BoundCreateTableInfo > info
 Create table info, in case of CREATE TABLE AS.
Public Attributes inherited from duckdb::PhysicalOperator
ArenaLinkedList< reference< PhysicalOperator > > children
 The child operators.
PhysicalOperatorType type
 The physical operator type.
vector< LogicalType > types
 The return types.
idx_t estimated_cardinality
 The estimated cardinality.
unique_ptr< GlobalSinkState > sink_state
 The global sink state.
unique_ptr< GlobalOperatorState > op_state
 The global operator state.
mutex lock
 Lock for (re)setting any of the operator states.

Static Public Attributes

static constexpr const PhysicalOperatorType TYPE = PhysicalOperatorType::BATCH_INSERT
Static Public Attributes inherited from duckdb::PhysicalOperator
static constexpr const PhysicalOperatorType TYPE = PhysicalOperatorType::INVALID

Private Member Functions

bool ExecuteTask (ClientContext &context, GlobalSinkState &gstate_p, LocalSinkState &lstate_p) const
void ExecuteTasks (ClientContext &context, GlobalSinkState &gstate_p, LocalSinkState &lstate_p) const

Additional Inherited Members

Static Public Member Functions inherited from duckdb::PhysicalOperator
static void SetEstimatedCardinality (InsertionOrderPreservingMap< string > &result, idx_t estimated_cardinality)
static idx_t GetMaxThreadMemory (ClientContext &context)
 The maximum amount of memory the operator should use per thread.
static OperatorCachingMode SelectOperatorCachingMode (ExecutionContext &context)
 Whether operator caching is allowed in the current execution context.

Constructor & Destructor Documentation

◆ PhysicalBatchInsert() [1/2]

duckdb::PhysicalBatchInsert::PhysicalBatchInsert ( PhysicalPlan & physical_plan,
vector< LogicalType > types,
TableCatalogEntry & table,
vector< unique_ptr< BoundConstraint > > bound_constraints,
idx_t estimated_cardinality )

INSERT INTO.

192960 : PhysicalOperator(physical_plan, PhysicalOperatorType::BATCH_INSERT, std::move(types_p), estimated_cardinality),
192961 insert_table(&table), insert_types(table.GetTypes()), bound_constraints(std::move(bound_constraints_p)) {
192962}
vector< LogicalType > insert_types
The insert types.
Definition duckdb.cpp:192895
vector< unique_ptr< BoundConstraint > > bound_constraints
The bound constraints for the table.
Definition duckdb.cpp:192897
optional_ptr< TableCatalogEntry > insert_table
The table to insert into.
Definition duckdb.cpp:192893
idx_t estimated_cardinality
The estimated cardinality.
Definition duckdb.hpp:22154
Here is the call graph for this function:

◆ PhysicalBatchInsert() [2/2]

duckdb::PhysicalBatchInsert::PhysicalBatchInsert ( PhysicalPlan & physical_plan,
LogicalOperator & op,
SchemaCatalogEntry & schema,
unique_ptr< BoundCreateTableInfo > info,
idx_t estimated_cardinality )

CREATE TABLE AS.

192966 : PhysicalOperator(physical_plan, PhysicalOperatorType::BATCH_CREATE_TABLE_AS, op.types, estimated_cardinality),
192967 insert_table(nullptr), schema(&schema), info(std::move(info_p)) {
192968 PhysicalInsert::GetInsertInfo(*info, insert_types);
192969}
optional_ptr< SchemaCatalogEntry > schema
Table schema, in case of CREATE TABLE AS.
Definition duckdb.cpp:192899
unique_ptr< BoundCreateTableInfo > info
Create table info, in case of CREATE TABLE AS.
Definition duckdb.cpp:192901

Member Function Documentation

◆ GetDataInternal()

SourceResultType duckdb::PhysicalBatchInsert::GetDataInternal ( ExecutionContext & context,
DataChunk & chunk,
OperatorSourceInput & input ) const
overridevirtual

Reimplemented from duckdb::PhysicalOperator.

193631 {
193632 auto &insert_gstate = sink_state->Cast<BatchInsertGlobalState>();
193633
193634 chunk.SetCardinality(1);
193635 chunk.SetValue(0, 0, Value::BIGINT(NumericCast<int64_t>(insert_gstate.insert_count)));
193636
193637 return SourceResultType::FINISHED;
193638}
unique_ptr< GlobalSinkState > sink_state
The global sink state.
Definition duckdb.hpp:22157
static DUCKDB_API Value BIGINT(int64_t value)
Create a bigint Value from a specified value.
Definition duckdb.cpp:132146

◆ IsSource()

bool duckdb::PhysicalBatchInsert::IsSource ( ) const
inlineoverridevirtual

Reimplemented from duckdb::PhysicalOperator.

192908 {
192909 return true;
192910 }

◆ GetGlobalSinkState()

unique_ptr< GlobalSinkState > duckdb::PhysicalBatchInsert::GetGlobalSinkState ( ClientContext & context) const
overridevirtual

Reimplemented from duckdb::PhysicalOperator.

193350 {
193351 optional_ptr<TableCatalogEntry> table;
193352 if (info) {
193353 // CREATE TABLE AS
193354 D_ASSERT(!insert_table);
193355 auto &catalog = schema->catalog;
193356 auto created_table = catalog.CreateTable(catalog.GetCatalogTransaction(context), *schema.get_mutable(), *info);
193357 table = &created_table->Cast<TableCatalogEntry>();
193358 } else {
193359 D_ASSERT(insert_table);
193360 D_ASSERT(insert_table->IsDuckTable());
193361 table = insert_table.get_mutable();
193362 }
193363 // heuristic - we start off by allocating 4MB of cache space per column
193364 static constexpr const idx_t MINIMUM_MEMORY_PER_COLUMN = 4ULL * 1024ULL * 1024ULL;
193365 auto minimum_memory_per_thread = table->GetColumns().PhysicalColumnCount() * MINIMUM_MEMORY_PER_COLUMN;
193366 auto result = make_uniq<BatchInsertGlobalState>(context, table->Cast<DuckTableEntry>(), minimum_memory_per_thread);
193367 return std::move(result);
193368}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ GetLocalSinkState()

unique_ptr< LocalSinkState > duckdb::PhysicalBatchInsert::GetLocalSinkState ( ExecutionContext & context) const
overridevirtual

Reimplemented from duckdb::PhysicalOperator.

193370 {
193371 return make_uniq<BatchInsertLocalState>(context.client, insert_types);
193372}

◆ NextBatch()

SinkNextBatchType duckdb::PhysicalBatchInsert::NextBatch ( ExecutionContext & context,
OperatorSinkNextBatchInput & input ) const
overridevirtual

For sinks with RequiresBatchIndex set to true, when a new batch starts being processed this method is called This allows flushing of the current batch (e.g. to disk)

Reimplemented from duckdb::PhysicalOperator.

193397 {
193398 auto &gstate = input.global_state.Cast<BatchInsertGlobalState>();
193399 auto &lstate = input.local_state.Cast<BatchInsertLocalState>();
193400 auto &memory_manager = gstate.memory_manager;
193401
193402 auto batch_index = lstate.partition_info.batch_index.GetIndex();
193403 if (lstate.collection_index.IsValid()) {
193404 if (lstate.current_index == batch_index) {
193405 throw InternalException("NextBatch called with the same batch index?");
193406 }
193407 // batch index has changed: move the old collection to the global state and create a new collection
193408 TransactionData tdata(0, 0);
193409 auto &optimistic_collection =
193410 gstate.table.GetStorage().GetOptimisticCollection(context.client, lstate.collection_index);
193411 auto &collection = *optimistic_collection.collection;
193412 collection.FinalizeAppend(tdata, lstate.current_append_state);
193413 gstate.AddCollection(context.client, lstate.current_index, lstate.partition_info.min_batch_index.GetIndex(),
193414 lstate.collection_index, lstate.optimistic_writer);
193415
193416 bool any_unblocked;
193417 {
193418 auto guard = memory_manager.Lock();
193419 any_unblocked = memory_manager.UnblockTasks(guard);
193420 }
193421 if (!any_unblocked) {
193422 ExecuteTasks(context.client, gstate, lstate);
193423 }
193424 lstate.collection_index.index = DConstants::INVALID_INDEX;
193425 }
193426 lstate.current_index = batch_index;
193427
193428 // unblock any blocked tasks
193429 auto guard = memory_manager.Lock();
193430 memory_manager.UnblockTasks(guard);
193431
193432 return SinkNextBatchType::READY;
193433}
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117

◆ Sink()

SinkResultType duckdb::PhysicalBatchInsert::Sink ( ExecutionContext & context,
DataChunk & chunk,
OperatorSinkInput & input ) const
overridevirtual

The sink method is called constantly with new input, as long as new input is available. Note that this method CAN be called in parallel, proper locking is needed when accessing dat a inside the GlobalSinkState.

Reimplemented from duckdb::PhysicalOperator.

193439 {
193440 auto &gstate = input.global_state.Cast<BatchInsertGlobalState>();
193441 auto &lstate = input.local_state.Cast<BatchInsertLocalState>();
193442 auto &memory_manager = gstate.memory_manager;
193443
193444 auto &table = gstate.table;
193445 insert_chunk.Flatten();
193446
193447 auto batch_index = lstate.partition_info.batch_index.GetIndex();
193448 // check if we should process this batch
193449 if (!memory_manager.IsMinimumBatchIndex(batch_index)) {
193450 memory_manager.UpdateMinBatchIndex(lstate.partition_info.min_batch_index.GetIndex());
193451
193452 // we are not processing the current min batch index
193453 // check if we have exceeded the maximum number of unflushed rows
193454 if (memory_manager.OutOfMemory(batch_index)) {
193455 // out-of-memory
193456 // execute tasks while we wait (if any are available)
193457 ExecuteTasks(context.client, gstate, lstate);
193458
193459 auto guard = memory_manager.Lock();
193460 if (!memory_manager.IsMinimumBatchIndex(batch_index)) {
193461 // we are not the minimum batch index and we have no memory available to buffer - block the task for
193462 // now
193463 return memory_manager.BlockSink(guard, input.interrupt_state);
193464 }
193465 }
193466 }
193467 if (!lstate.collection_index.IsValid()) {
193468 lock_guard<mutex> l(gstate.lock);
193469 // no collection yet: create a new one
193470 lstate.CreateNewCollection(context.client, table, insert_types);
193471 }
193472
193473 if (lstate.current_index != batch_index) {
193474 throw InternalException("Current batch differs from batch - but NextBatch was not called!?");
193475 }
193476
193477 if (!lstate.constraint_state) {
193478 lstate.constraint_state = table.GetStorage().InitializeConstraintState(table, bound_constraints);
193479 }
193480
193481 auto &storage = table.GetStorage();
193482 auto &local_storage = LocalStorage::Get(context.client, storage.db);
193483 auto local_table_storage = local_storage.GetStorage(table.GetStorage());
193484 storage.VerifyAppendConstraints(*lstate.constraint_state, context.client, insert_chunk, local_table_storage,
193485 nullptr);
193486
193487 auto &optimistic_collection = table.GetStorage().GetOptimisticCollection(context.client, lstate.collection_index);
193488 auto &collection = *optimistic_collection.collection;
193489 auto new_row_group = collection.Append(insert_chunk, lstate.current_append_state);
193490 if (new_row_group) {
193491 // we have already written to disk - flush the next row group as well
193492 lstate.optimistic_writer->WriteNewRowGroup(optimistic_collection);
193493 }
193494 return SinkResultType::NEED_MORE_INPUT;
193495}
Here is the call graph for this function:

◆ Combine()

SinkCombineResultType duckdb::PhysicalBatchInsert::Combine ( ExecutionContext & context,
OperatorSinkCombineInput & input ) const
overridevirtual

The combine is called when a single thread has completed execution of its part of the pipeline, it is the final time that a specific LocalSinkState is accessible. This method can be called in parallel while other Sink() or Combine() calls are active on the same GlobalSinkState.

Reimplemented from duckdb::PhysicalOperator.

193500 {
193501 auto &gstate = input.global_state.Cast<BatchInsertGlobalState>();
193502 auto &lstate = input.local_state.Cast<BatchInsertLocalState>();
193503 auto &memory_manager = gstate.memory_manager;
193504 auto &client_profiler = QueryProfiler::Get(context.client);
193505 context.thread.profiler.Flush(*this);
193506 client_profiler.Flush(context.thread.profiler);
193507
193508 memory_manager.UpdateMinBatchIndex(lstate.partition_info.min_batch_index.GetIndex());
193509
193510 if (lstate.collection_index.IsValid()) {
193511 TransactionData tdata(0, 0);
193512 auto &optimistic_collection =
193513 gstate.table.GetStorage().GetOptimisticCollection(context.client, lstate.collection_index);
193514 auto &collection = *optimistic_collection.collection;
193515 collection.FinalizeAppend(tdata, lstate.current_append_state);
193516 if (collection.GetTotalRows() > 0) {
193517 auto batch_index = lstate.partition_info.min_batch_index.GetIndex();
193518 gstate.AddCollection(context.client, lstate.current_index, batch_index, lstate.collection_index);
193519 lstate.collection_index = PhysicalIndex(DConstants::INVALID_INDEX);
193520 }
193521 }
193522 if (lstate.optimistic_writer) {
193523 lock_guard<mutex> l(gstate.lock);
193524 auto &optimistic_writer = gstate.table.GetStorage().GetOptimisticWriter(context.client);
193525 optimistic_writer.Merge(*lstate.optimistic_writer);
193526 }
193527
193528 // unblock any blocked tasks
193529 auto guard = memory_manager.Lock();
193530 memory_manager.UnblockTasks(guard);
193531
193532 return SinkCombineResultType::FINISHED;
193533}

◆ Finalize()

SinkFinalizeType duckdb::PhysicalBatchInsert::Finalize ( Pipeline & pipeline,
Event & event,
ClientContext & context,
OperatorSinkFinalizeInput & input ) const
overridevirtual

The finalize is called when ALL threads are finished execution. It is called only once per pipeline, and is entirely single threaded. If Finalize returns SinkResultType::Finished, the sink is marked as finished

Reimplemented from duckdb::PhysicalOperator.

193539 {
193540 auto &g_state = input.global_state.Cast<BatchInsertGlobalState>();
193541 auto &table = g_state.table;
193542 auto &data_table = g_state.table.GetStorage();
193543 auto &memory_manager = g_state.memory_manager;
193544
193545 if (g_state.optimistically_written || g_state.insert_count >= g_state.row_group_size) {
193546 // we have written data to disk optimistically or are inserting a large amount of data
193547 // perform a final pass over all of the row groups and merge them together
193548 vector<unique_ptr<CollectionMerger>> mergers;
193549 unique_ptr<CollectionMerger> current_merger;
193550
193551 for (auto &entry : g_state.collections) {
193552 if (entry.type == RowGroupBatchType::NOT_FLUSHED) {
193553 // this collection has not been flushed: add it to the merge set
193554 if (!current_merger) {
193555 current_merger = make_uniq<CollectionMerger>(context, data_table);
193556 }
193557 current_merger->AddCollection(entry.collection_index, entry.type);
193558 memory_manager.ReduceUnflushedMemory(entry.unflushed_memory);
193559 continue;
193560 }
193561
193562 // This collection has been flushed, so it does not need to be merged.
193563 // Create a separate collection merger for it.
193564 if (current_merger) {
193565 // Flush any remaining small allocations.
193566 mergers.push_back(std::move(current_merger));
193567 current_merger.reset();
193568 }
193569 auto larger_merger = make_uniq<CollectionMerger>(context, data_table);
193570 larger_merger->AddCollection(entry.collection_index, entry.type);
193571 mergers.push_back(std::move(larger_merger));
193572 }
193573
193574 g_state.collections.clear();
193575 if (current_merger) {
193576 mergers.push_back(std::move(current_merger));
193577 }
193578
193579 // now that we have created all of the mergers, perform the actual merging
193580 vector<PhysicalIndex> final_collections;
193581 final_collections.reserve(mergers.size());
193582 auto writer = make_uniq<OptimisticDataWriter>(context, data_table);
193583 for (auto &merger : mergers) {
193584 final_collections.push_back(merger->Flush(*writer));
193585 }
193586
193587 // finally, merge the row groups into the local storage
193588 for (const auto collection_index : final_collections) {
193589 auto &collection = data_table.GetOptimisticCollection(context, collection_index);
193590 data_table.LocalMerge(context, collection);
193591 data_table.ResetOptimisticCollection(context, collection_index);
193592 }
193593
193594 auto &optimistic_writer = data_table.GetOptimisticWriter(context);
193595 optimistic_writer.Merge(*writer);
193596 optimistic_writer.FinalFlush();
193597 memory_manager.FinalCheck();
193598 return SinkFinalizeType::READY;
193599 }
193600
193601 // We are writing a small amount of data to disk.
193602 // Thus, we append directly to the transaction local storage.
193603 LocalAppendState append_state;
193604 data_table.InitializeLocalAppend(append_state, table, context, bound_constraints);
193605 auto &transaction = DuckTransaction::Get(context, table.catalog);
193606 for (auto &entry : g_state.collections) {
193607 if (entry.type != RowGroupBatchType::NOT_FLUSHED) {
193608 throw InternalException("Encountered a flushed batch");
193609 }
193610
193611 memory_manager.ReduceUnflushedMemory(entry.unflushed_memory);
193612 auto &optimistic_collection = data_table.GetOptimisticCollection(context, entry.collection_index);
193613 auto &collection = *optimistic_collection.collection;
193614 for (auto &insert_chunk : collection.Chunks(transaction)) {
193615 data_table.LocalAppend(append_state, context, insert_chunk, false);
193616 }
193617 data_table.ResetOptimisticCollection(context, entry.collection_index);
193618 }
193619
193620 g_state.collections.clear();
193621 data_table.FinalizeLocalAppend(append_state);
193622 memory_manager.FinalCheck();
193623 return SinkFinalizeType::READY;
193624}
Here is the call graph for this function:

◆ RequiredPartitionInfo()

OperatorPartitionInfo duckdb::PhysicalBatchInsert::RequiredPartitionInfo ( ) const
inlineoverridevirtual

Reimplemented from duckdb::PhysicalOperator.

192922 {
192923 return OperatorPartitionInfo::BatchIndex();
192924 }

◆ IsSink()

bool duckdb::PhysicalBatchInsert::IsSink ( ) const
inlineoverridevirtual

Reimplemented from duckdb::PhysicalOperator.

192926 {
192927 return true;
192928 }

◆ ParallelSink()

bool duckdb::PhysicalBatchInsert::ParallelSink ( ) const
inlineoverridevirtual

Reimplemented from duckdb::PhysicalOperator.

192930 {
192931 return true;
192932 }

◆ ExecuteTask()

bool duckdb::PhysicalBatchInsert::ExecuteTask ( ClientContext & context,
GlobalSinkState & gstate_p,
LocalSinkState & lstate_p ) const
private
193378 {
193379 auto &gstate = gstate_p.Cast<BatchInsertGlobalState>();
193380 auto task = gstate.task_manager.GetTask();
193381 if (!task) {
193382 return false;
193383 }
193384 task->Execute(*this, context, gstate_p, lstate_p);
193385 return true;
193386}

◆ ExecuteTasks()

void duckdb::PhysicalBatchInsert::ExecuteTasks ( ClientContext & context,
GlobalSinkState & gstate_p,
LocalSinkState & lstate_p ) const
private
193389 {
193390 while (ExecuteTask(context, gstate_p, lstate_p)) {
193391 }
193392}

The documentation for this class was generated from the following file: