lide-reed commented on issue #16604:
URL: https://github.com/apache/doris/issues/16604#issuecomment-1425414869

   It start successfully after made following patch:
   
   `diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
   index 60d8c3337..a4f13776b 100644
   --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
   +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
   @@ -410,8 +410,11 @@ public class OlapTable extends Table {
    
        // this is only for schema change.
        public void renameIndexForSchemaChange(String name, String newName) {
   -        long idxId = indexNameToId.remove(name);
   -        indexNameToId.put(newName, idxId);
   +       if (indexNameToId != null && name != null) {
   +            long idxId = indexNameToId.remove(name);
   +            indexNameToId.put(newName, idxId);
   +       }
   +       LOG.info("indexNameToId="+ indexNameToId + ",name=" + name);
        }
    
        public void renameColumnNamePrefix(long idxId) {`


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

Reply via email to