You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "liaoxin01 (via GitHub)" <gi...@apache.org> on 2023/07/24 14:30:19 UTC

[GitHub] [doris] liaoxin01 commented on a diff in pull request #22154: [Fix](MoW) Fix dup key when do schema change add new key

liaoxin01 commented on code in PR #22154:
URL: https://github.com/apache/doris/pull/22154#discussion_r1272347649


##########
be/src/olap/schema_change.cpp:
##########
@@ -429,6 +429,8 @@ Status BlockChanger::_check_cast_valid(vectorized::ColumnPtr ref_column,
 Status LinkedSchemaChange::process(RowsetReaderSharedPtr rowset_reader, RowsetWriter* rowset_writer,
                                    TabletSharedPtr new_tablet, TabletSharedPtr base_tablet,
                                    TabletSchemaSPtr base_tablet_schema) {
+    // LinkedSchemaChange is useless, will remove it in the future.
+    DCHECK(false);

Review Comment:
   why add this DCHECK?



##########
be/src/olap/schema_change.cpp:
##########
@@ -429,6 +429,8 @@ Status BlockChanger::_check_cast_valid(vectorized::ColumnPtr ref_column,
 Status LinkedSchemaChange::process(RowsetReaderSharedPtr rowset_reader, RowsetWriter* rowset_writer,
                                    TabletSharedPtr new_tablet, TabletSharedPtr base_tablet,
                                    TabletSchemaSPtr base_tablet_schema) {
+    // LinkedSchemaChange is useless, will remove it in the future.
+    DCHECK(false);

Review Comment:
   why add this DCHECK?



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org