MCPcopy Create free account
hub / github.com/BlazingDB/blazingsql / is_operator_token

Function is_operator_token

engine/src/parser/expression_utils.cpp:493–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493bool is_operator_token(const std::string & token) {
494 // can't use is_unary_operator_token(token) || is_binary_operator_token(token);
495 // need to work with calcite operators too i.e. CASE, CAST, etc
496 return !is_literal(token) && !is_var_column(token) && !is_SQL_data_type(token);
497}
498
499bool is_literal(const std::string & token) {
500 return is_null(token) || is_bool(token) || is_number(token) || is_date(token) || is_string(token) ||

Calls 3

is_literalFunction · 0.85
is_var_columnFunction · 0.85
is_SQL_data_typeFunction · 0.85

Tested by

no test coverage detected