mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
revert format
This commit is contained in:
parent
b35ff7e417
commit
632ab91bbb
@ -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 (";
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user