aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/ASTHelpers.h
blob: 0b3db8e02d5c038e83ef379f27c301b23abbc9c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
}


}