mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
24 lines
658 B
C++
24 lines
658 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Analyzer/IQueryTreeNode.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
/** Collect window function nodes in node children.
|
||
|
* Do not visit subqueries.
|
||
|
*/
|
||
|
QueryTreeNodes collectWindowFunctionNodes(const QueryTreeNodePtr & node);
|
||
|
|
||
|
/** Collect window function nodes in node children and add them into result.
|
||
|
* Do not visit subqueries.
|
||
|
*/
|
||
|
void collectWindowFunctionNodes(const QueryTreeNodePtr & node, QueryTreeNodes & result);
|
||
|
|
||
|
/** Assert that there are no window function nodes in node children.
|
||
|
* Do not visit subqueries.
|
||
|
*/
|
||
|
void assertNoWindowFunctionNodes(const QueryTreeNodePtr & node, const String & assert_no_window_functions_place_message);
|
||
|
|
||
|
}
|