revert format

This commit is contained in:
lgbo-ustc 2024-08-02 16:01:29 +08:00
parent b35ff7e417
commit 632ab91bbb
3 changed files with 508 additions and 414 deletions

View File

@ -1,5 +1,6 @@
#include <Planner/PlannerActionsVisitor.h>
#include <AggregateFunctions/WindowFunction.h>
#include <Analyzer/Utils.h>
#include <Analyzer/SetUtils.h>
#include <Analyzer/ConstantNode.h>
@ -242,6 +243,11 @@ public:
auto & window_frame = window_node.getWindowFrame();
if (!window_frame.is_default)
return window_frame;
auto aggregate_function = function_node.getAggregateFunction();
if (const auto * win_func = dynamic_cast<const IWindowFunction *>(aggregate_function.get()))
{
return win_func->getDefaultFrame();
}
return {};
};
buffer << " OVER (";

View File

@ -24,7 +24,6 @@ extern const int NOT_IMPLEMENTED;
namespace
{
//WindowDescription extractWindowDescriptionFromWindowNode(const QueryTreeNodePtr & node, const PlannerContext & planner_context)
WindowDescription extractWindowDescriptionFromWindowNode(const FunctionNode & func_node, const PlannerContext & planner_context)
{
auto node = func_node.getWindowNode();

File diff suppressed because it is too large Load Diff