Support Doris query ES by HTTP way (#925)

This commit is contained in:
lide
2019-04-28 17:14:44 +08:00
committed by ZHAO Chun
parent 4559bc3558
commit 9c82d41981
45 changed files with 4373 additions and 24 deletions

View File

@ -700,6 +700,13 @@ TExprNodeType::type Expr::type_without_cast(const Expr* expr) {
return expr->_node_type;
}
const Expr* Expr::expr_without_cast(const Expr* expr) {
if (expr->_opcode == TExprOpcode::CAST) {
return expr_without_cast(expr->_children[0]);
}
return expr;
}
doris_udf::AnyVal* Expr::get_const_val(ExprContext* context) {
if (!is_constant()) {
return NULL;