yiguolei commented on code in PR #12310: URL: https://github.com/apache/doris/pull/12310#discussion_r962393281
########## be/src/vec/core/block.cpp: ########## @@ -726,20 +734,19 @@ Status Block::serialize(PBlock* pblock, size_t* uncompressed_bytes, size_t* comp // compress if (config::compress_rowbatches && content_uncompressed_size > 0) { - SCOPED_RAW_TIMER(const_cast<int64_t*>(&_compress_time_ns)); + SCOPED_RAW_TIMER(&_compress_time_ns); Review Comment: This method is a const method, if not const_cast here, any thing wrong? -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org