yiguolei commented on code in PR #50290:
URL: https://github.com/apache/doris/pull/50290#discussion_r2057509602


##########
be/src/vec/sink/vmysql_result_writer.cpp:
##########
@@ -202,11 +202,13 @@ Status 
VMysqlResultWriter<is_binary_format>::_write_one_block(RuntimeState* stat
         for (size_t col_idx = 0; col_idx < num_cols; ++col_idx) {
             const auto& [column_ptr, col_const] =
                     unpack_if_const(block.get_by_position(col_idx).column);
-            int scale = _output_vexpr_ctxs[col_idx]->root()->type().scale;
+            int scale =
+                    
remove_nullable(_output_vexpr_ctxs[col_idx]->root()->data_type())->get_scale();

Review Comment:
   这里为什么需要remove null



-- 
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]

Reply via email to