mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +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;
|
|
}
|
|
|
|
|
|
}
|