mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
18 lines
254 B
C++
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;
|
|
}
|
|
|
|
|
|
}
|