This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 4909c34555e [fix](compile) Fix Type Mismatch in min Function for 
VMysqlResultWriter on macOS (#38202) (#40042)
4909c34555e is described below

commit 4909c34555ebe0b75093e60deedced6f830f8149
Author: camby <camby...@tencent.com>
AuthorDate: Wed Aug 28 21:36:04 2024 +0800

    [fix](compile) Fix Type Mismatch in min Function for VMysqlResultWriter on 
macOS (#38202) (#40042)
    
    pick #38202 to branch-2.1
    
    Co-authored-by: zy-kkk <zhongy...@gmail.com>
---
 be/src/vec/sink/vmysql_result_writer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/sink/vmysql_result_writer.cpp 
b/be/src/vec/sink/vmysql_result_writer.cpp
index 88c0cb80cc2..0cdf1b34034 100644
--- a/be/src/vec/sink/vmysql_result_writer.cpp
+++ b/be/src/vec/sink/vmysql_result_writer.cpp
@@ -268,7 +268,7 @@ Status VMysqlResultWriter<is_binary_format>::write(Block& 
input_block) {
 
         size_t offset = 0;
         while (offset < total_rows) {
-            size_t rows = std::min(sub_block_rows, total_rows - offset);
+            size_t rows = std::min(static_cast<size_t>(sub_block_rows), 
total_rows - offset);
             auto sub_block = block.clone_empty();
             for (size_t i = 0; i != block.columns(); ++i) {
                 sub_block.get_by_position(i).column =


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to