Gabriel39 commented on code in PR #15885: URL: https://github.com/apache/doris/pull/15885#discussion_r1068872731
########## be/src/vec/sink/vmysql_result_writer.cpp: ########## @@ -367,6 +367,14 @@ int VMysqlResultWriter::_add_one_cell(const ColumnPtr& column_ptr, size_t row_id char buf[64]; char* pos = datev2.to_string(buf); return buffer.push_string(buf, pos - buf - 1); + } else if (which.is_date_time_v2()) { + auto& column_vector = assert_cast<const ColumnVector<UInt64>&>(*column); + auto value = column_vector[row_idx].get<UInt64>(); + DateV2Value<DateTimeV2ValueType> datetimev2; Review Comment: Use `DateV2Value<DateTimeV2ValueType> datetimev2 = binary_cast<UInt64, DateV2Value<DateTimeV2ValueType>>(value)`. Could you also change datev2 to this method ? -- 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