mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
26 lines
665 B
C++
26 lines
665 B
C++
#pragma once
|
|
|
|
#include <Analyzer/IQueryTreePass.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Customize aggregate functions and `in` functions implementations.
|
|
*
|
|
* Example: SELECT countDistinct();
|
|
* Result: SELECT countDistinctImplementation();
|
|
* Function countDistinctImplementation is taken from settings.count_distinct_implementation.
|
|
*/
|
|
class CustomizeFunctionsPass final : public IQueryTreePass
|
|
{
|
|
public:
|
|
String getName() override { return "CustomizeFunctions"; }
|
|
|
|
String getDescription() override { return "Customize implementation of aggregate functions, and in functions."; }
|
|
|
|
void run(QueryTreeNodePtr query_tree_node, ContextPtr context) override;
|
|
|
|
};
|
|
|
|
}
|