You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by pa...@apache.org on 2022/07/04 03:13:23 UTC

[doris] branch master updated: [Build] fix the compile error with clang (#10570)

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

panxiaolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d4a9b95a4 [Build] fix the compile error with clang (#10570)
9d4a9b95a4 is described below

commit 9d4a9b95a4d188dbf66a7ecd60de8f3f3960b664
Author: carlvinhust2012 <hu...@126.com>
AuthorDate: Mon Jul 4 11:13:17 2022 +0800

    [Build] fix the compile error with clang (#10570)
    
    Co-authored-by: hucheng01 <hu...@baidu.com>
---
 be/src/exec/mysql_scan_node.cpp       | 2 +-
 be/src/runtime/mysql_table_writer.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/exec/mysql_scan_node.cpp b/be/src/exec/mysql_scan_node.cpp
index e28d7a1603..a136c5dc35 100644
--- a/be/src/exec/mysql_scan_node.cpp
+++ b/be/src/exec/mysql_scan_node.cpp
@@ -138,7 +138,7 @@ Status MysqlScanNode::write_text_slot(char* value, int value_length, SlotDescrip
     if (!_text_converter->write_slot(slot, _tuple, value, value_length, true, false,
                                      _tuple_pool.get())) {
         return Status::InternalError("Fail to convert mysql value:'{}' to {} on column:`{}`", value,
-                                     slot->type(), slot->col_name());
+                                     slot->type().debug_string(), slot->col_name());
     }
 
     return Status::OK();
diff --git a/be/src/runtime/mysql_table_writer.cpp b/be/src/runtime/mysql_table_writer.cpp
index 3f921db2a4..bd1f746db8 100644
--- a/be/src/runtime/mysql_table_writer.cpp
+++ b/be/src/runtime/mysql_table_writer.cpp
@@ -147,7 +147,7 @@ Status MysqlTableWriter::insert_row(TupleRow* row) {
 
         default: {
             return Status::InternalError("can't convert this type to mysql type. type = {}",
-                                         _output_expr_ctxs[i]->root()->type());
+                                         _output_expr_ctxs[i]->root()->type().type);
         }
         }
     }


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