[Log](expr) add DCHECK info for expr close DCHECK (#19683)

This commit is contained in:
HappenLee
2023-05-17 21:37:38 +08:00
committed by GitHub
parent b5f60bde42
commit dc18da2ce4
3 changed files with 8 additions and 4 deletions

View File

@ -345,8 +345,6 @@ std::string VExpr::debug_string() const {
// TODO: implement partial debug string for member vars
std::stringstream out;
out << " type=" << _type.debug_string();
out << " codegen="
<< "false";
if (!_children.empty()) {
out << " children=" << debug_string(_children);

View File

@ -49,7 +49,8 @@ VExprContext::VExprContext(VExpr* expr)
VExprContext::~VExprContext() {
// Do not delete this code, this code here is used to check if forget to close the opened context
// Or there will be memory leak
DCHECK(!_prepared || _closed) << get_stack_trace();
DCHECK(!_prepared || _closed) << get_stack_trace() << " prepare:" << _prepared
<< " closed:" << _closed << " expr:" << _root->debug_string();
}
doris::Status VExprContext::execute(doris::vectorized::Block* block, int* result_column_id) {