csun5285 commented on code in PR #63522:
URL: https://github.com/apache/doris/pull/63522#discussion_r3307987867


##########
be/src/core/data_type_serde/data_type_timestamptz_serde.cpp:
##########
@@ -250,4 +250,21 @@ std::string DataTypeTimeStampTzSerDe::to_olap_string(const 
Field& field) const {
     return CastToString::from_timestamptz(field.get<TYPE_TIMESTAMPTZ>(), 6);
 }
 
+void DataTypeTimeStampTzSerDe::write_one_cell_to_binary(const IColumn& 
src_column,
+                                                        ColumnString::Chars& 
chars,
+                                                        int64_t row_num) const 
{
+    const auto type = 
static_cast<uint8_t>(FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ);
+    const auto& data_ref = assert_cast<const 
ColumnTimeStampTz&>(src_column).get_data_at(row_num);
+    const auto sc = static_cast<uint8_t>(_scale);
+
+    const size_t old_size = chars.size();
+    const size_t new_size = old_size + sizeof(uint8_t) + sizeof(uint8_t) + 
data_ref.size;

Review Comment:
   no problem,旧的写入格式是错的,不需要兼容。



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