blob: 5ba626a8b2c6c2715921ae772225d468de113ecc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <Parsers/isDiskFunction.h>
#include <Parsers/ASTFunction.h>
namespace DB
{
bool isDiskFunction(ASTPtr ast)
{
if (!ast)
return false;
const auto * function = ast->as<ASTFunction>();
return function && function->name.starts_with("disk") && function->arguments->as<ASTExpressionList>();
}
}
|