ClickHouse/src/Parsers/isDiskFunction.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
321 B
C++
Raw Normal View History

2023-02-22 11:14:59 +00:00
#include <Parsers/isDiskFunction.h>
#include <Parsers/ASTFunction.h>
namespace DB
{
bool isDiskFunction(ASTPtr ast)
{
if (!ast)
return false;
const auto * function = ast->as<ASTFunction>();
2023-06-28 17:05:35 +00:00
return function && function->name.starts_with("disk") && function->arguments->as<ASTExpressionList>();
2023-02-22 11:14:59 +00:00
}
}