diff --git a/be/src/vec/exprs/vliteral.cpp b/be/src/vec/exprs/vliteral.cpp index 1d02a63321befd..8dcc5e3cb5a1cf 100644 --- a/be/src/vec/exprs/vliteral.cpp +++ b/be/src/vec/exprs/vliteral.cpp @@ -76,15 +76,8 @@ Status VLiteral::execute(VExprContext* context, vectorized::Block* block, int* r } std::string VLiteral::value() const { - //TODO: dcheck the equality of size with 1. then use string with size to replace the ss. - std::stringstream out; - for (size_t i = 0; i < _column_ptr->size(); i++) { - if (i != 0) { - out << ", "; - } - out << _data_type->to_string(*_column_ptr, i); - } - return out.str(); + DCHECK(_column_ptr->size() == 1); + return _data_type->to_string(*_column_ptr, 0); } std::string VLiteral::debug_string() const {