HappenLee commented on code in PR #9666:
URL: https://github.com/apache/incubator-doris/pull/9666#discussion_r876704180
##########
be/src/vec/core/block.cpp:
##########
@@ -402,6 +402,20 @@ std::string Block::dump_data(size_t begin, size_t
row_limit) const {
return out.str();
}
+std::string Block::dump_one_line(size_t row, int column_end) const {
+ assert(column_end < columns());
+ fmt::memory_buffer line;
+ for (int i = 0; i < column_end; ++i) {
+ if (LIKELY(i != 0)) {
+ // TODO: need more effective function of to string. now the impl
is slow
+ fmt::format_to(line, " {}", data[i].to_string(row));
Review Comment:
assert at 406 line and no null pointer should in block
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]