mymeiyi opened a new pull request, #31146:
URL: https://github.com/apache/doris/pull/31146

   ## Proposed changes
   
   If table schame is changed, and recover partition which is in original 
schema, the read/write to the recovered partition can get exception as:
   ```
   mysql> insert into recover_with_schema_change0 values(4, 'a', '2022-01-02');
   ERROR 1105 (HY000): errCode = 2, detailMessage = 
(127.0.0.1)[CANCELLED][INTERNAL_ERROR]partition's index is not equal with 
schema's, part_index=279201, schema_index=279218
   
           0#  doris::Status doris::Status::Error<6, true, long&, 
long&>(std::basic_string_view<char, std::char_traits<char> >, long&, long&) at 
/mnt/disk2/meiyi/clion_workspace/doris_master2/be/src/common/status.h:382
           1#  doris::Status doris::Status::InternalError<true, long&, 
long&>(std::basic_string_view<char, std::char_traits<char> >, long&, long&) at 
/mnt/disk
   ```
   
   ```
   mysql> select * from tbl1;
   ERROR 1105 (HY000): errCode = 2, detailMessage = Unexpected exception: null
   
   java.lang.NullPointerException: null
           at 
org.apache.doris.planner.OlapScanNode.distributionPrune(OlapScanNode.java:715) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.planner.OlapScanNode.computeTabletInfo(OlapScanNode.java:1134) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.planner.OlapScanNode.createScanRangeLocations(OlapScanNode.java:992)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.planner.OlapScanNode.finalize(OlapScanNode.java:621) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.planner.OriginalPlanner.createPlanFragments(OriginalPlanner.java:208)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.planner.OriginalPlanner.plan(OriginalPlanner.java:102) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.qe.StmtExecutor.analyzeAndGenerateQueryPlan(StmtExecutor.java:1245)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   
   ```
   
   so should forbid it.
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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