| 491 | } |
| 492 | |
| 493 | bool 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 | |
| 499 | bool is_literal(const std::string & token) { |
| 500 | return is_null(token) || is_bool(token) || is_number(token) || is_date(token) || is_string(token) || |
no test coverage detected