mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
22 lines
512 B
C++
22 lines
512 B
C++
#pragma once
|
|
|
|
namespace DB
|
|
{
|
|
|
|
inline bool functionIsInOperator(const std::string & name)
|
|
{
|
|
return name == "in" || name == "notIn" || name == "nullIn" || name == "notNullIn";
|
|
}
|
|
|
|
inline bool functionIsInOrGlobalInOperator(const std::string & name)
|
|
{
|
|
return functionIsInOperator(name) || name == "globalIn" || name == "globalNotIn" || name == "globalNullIn" || name == "globalNotNullIn";
|
|
}
|
|
|
|
inline bool functionIsLikeOperator(const std::string & name)
|
|
{
|
|
return name == "like" || name == "notLike";
|
|
}
|
|
|
|
}
|