ClickHouse/src/Storages/MergeTree/MergeTreeIndexUtils.h
2022-10-31 12:30:00 +01:00

14 lines
370 B
C++

#pragma once
#include <Parsers/IAST.h>
namespace DB
{
/** Build AST filter node for index analysis from WHERE and PREWHERE sections of select query and additional filters.
* If select query does not have WHERE and PREWHERE and additional filters are empty null is returned.
*/
ASTPtr buildFilterNode(const ASTPtr & select_query, ASTs additional_filters = {});
}