From 7d68352f0cf03bf1389c8398b1df6c92101c52c8 Mon Sep 17 00:00:00 2001 From: dtenwolde Date: Tue, 4 Jul 2023 10:20:26 +0200 Subject: [PATCH] Adding order by Reverted planner logic to align with DuckDB --- src/planner/planner.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/planner/planner.cpp b/src/planner/planner.cpp index 5e2876112c7b..607535d93c2c 100644 --- a/src/planner/planner.cpp +++ b/src/planner/planner.cpp @@ -52,8 +52,6 @@ void Planner::CreatePlan(SQLStatement &statement) { this->types = {LogicalTypeId::UNKNOWN}; this->plan = nullptr; parameters_resolved = false; - } catch (const BinderException &ex) { - throw; } catch (const Exception &ex) { auto &config = DBConfig::GetConfig(context); @@ -68,28 +66,11 @@ void Planner::CreatePlan(SQLStatement &statement) { break; } } - if (!this->plan) { throw; } } catch (std::exception &ex) { - auto &config = DBConfig::GetConfig(context); - - this->plan = nullptr; - for (auto &extension_op : config.operator_extensions) { - auto bound_statement = - extension_op->Bind(context, *this->binder, extension_op->operator_info.get(), statement); - if (bound_statement.plan != nullptr) { - this->names = bound_statement.names; - this->types = bound_statement.types; - this->plan = std::move(bound_statement.plan); - break; - } - } - - if (!this->plan) { - throw; - } + throw; } this->properties = binder->properties; this->properties.parameter_count = parameter_count;