@@ -251,28 +251,16 @@ Status DataTypeDateSerDe<T>::read_column_from_arrow(IColumn& column,
251251}
252252
253253template <PrimitiveType T>
254- Status DataTypeDateSerDe<T>::write_column_to_mysql_binary(
255- const IColumn& column, MysqlRowBinaryBuffer& result, int64_t row_idx, bool col_const ,
256- const typename DataTypeNumberSerDe<T>::FormatOptions& options ) const {
254+ Status DataTypeDateSerDe<T>::write_column_to_mysql_binary(const IColumn& column,
255+ MysqlRowBinaryBuffer& result ,
256+ int64_t row_idx, bool col_const ) const {
257257 const auto & data = assert_cast<const ColumnVector<T>&>(column).get_data ();
258258 const auto col_index = index_check_const (row_idx, col_const);
259259 auto time_num = data[col_index];
260260 VecDateTimeValue time_val = binary_cast<Int64, VecDateTimeValue>(time_num);
261- // _nesting_level >= 2 means this datetimev2 is in complex type
262- // and we should add double quotes
263- if (DataTypeNumberSerDe<T>::_nesting_level >= 2 && options.wrapper_len > 0 ) {
264- if (UNLIKELY (0 != result.push_string (options.nested_string_wrapper , options.wrapper_len ))) {
265- return Status::InternalError (" pack mysql buffer failed." );
266- }
267- }
268261 if (UNLIKELY (0 != result.push_vec_datetime (time_val))) {
269262 return Status::InternalError (" pack mysql buffer failed." );
270263 }
271- if (DataTypeNumberSerDe<T>::_nesting_level >= 2 && options.wrapper_len > 0 ) {
272- if (UNLIKELY (0 != result.push_string (options.nested_string_wrapper , options.wrapper_len ))) {
273- return Status::InternalError (" pack mysql buffer failed." );
274- }
275- }
276264 return Status::OK ();
277265}
278266
0 commit comments