提交 229e40a8 编写于 作者: O obdev 提交者: ob-robot

[CP] Add datum is_null check while calc sort topn_limit expr

上级 e36fa91d
......@@ -107,6 +107,8 @@ int ObSortOp::get_int_value(const ObExpr* in_val, int64_t& out_val)
} else if (OB_ISNULL(datum)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected status: datum is null", K(ret));
} else if (datum->is_null()) {
out_val = 0;
} else {
out_val = *datum->int_;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册