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


##########
be/src/storage/segment/column_reader_cache.cpp:
##########
@@ -117,6 +157,11 @@ Status ColumnReaderCache::get_column_reader(int32_t 
col_uid,
     }
     RETURN_IF_ERROR(st_meta);
 
+    // Segments written before #26572 do not persist decimal precision/frac in
+    // ColumnMetaPB, so recover the logical p/s from TabletSchema before
+    // ColumnReader builds DataTypeDecimal.
+    fill_missing_decimal_precision_from_schema(&meta, _tablet_schema);

Review Comment:
   在Segment::_parse_footer 的时候把里面的ColumnMetaPB 改了就行。



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