ClickHouse/src/Parsers/ASTHelpers.h

18 lines
254 B
C++

#pragma once
#include <Parsers/ASTFunction.h>
namespace DB
{
static inline bool isFunctionCast(const ASTFunction * function) /// NOLINT
{
if (function)
return function->name == "CAST" || function->name == "_CAST";
return false;
}
}