Skip to content

Commit c6c3a1e

Browse files
committed
move OrderPreservationRecursive declaration to hpp
1 parent 3d1a1a9 commit c6c3a1e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/execution/physical_plan/plan_insert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace duckdb {
1212

13-
static OrderPreservationType OrderPreservationRecursive(PhysicalOperator &op) {
13+
OrderPreservationType PhysicalPlanGenerator::OrderPreservationRecursive(PhysicalOperator &op) {
1414
if (op.IsSource()) {
1515
return op.SourceOrder();
1616
}

src/include/duckdb/execution/physical_plan_generator.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ class PhysicalPlanGenerator {
4444
static bool UseBatchIndex(ClientContext &context, PhysicalOperator &plan);
4545
//! Whether or not we should preserve insertion order for executing the given sink
4646
static bool PreserveInsertionOrder(ClientContext &context, PhysicalOperator &plan);
47+
//! The order preservation type of the given operator decided by recursively looking at its children
48+
static OrderPreservationType OrderPreservationRecursive(PhysicalOperator &op);
49+
4750

4851
protected:
4952
unique_ptr<PhysicalOperator> CreatePlan(LogicalOperator &op);

0 commit comments

Comments
 (0)