englefly opened a new issue #8073:
URL: https://github.com/apache/incubator-doris/issues/8073


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   branch-0.14
   branch-0.15 df2c7563b08e94801daeb4370a1627886dbc3d34
   
   
   ### What's Wrong?
   
   after alter schema, changing bigint column to string (release 0.14) or 
varchar (release 0.15), be is down.
   
   ### What You Expected?
   
   safely alter schema:
   `alter table table_1 modify column b varchar(1);`
   
   
   ### How to Reproduce?
   
   1. create a table `table_1`
   ```
   CREATE TABLE `table_1` ( 
       `a` bigint(20) NULL COMMENT "主键", 
       `b` int(11) NULL COMMENT "", 
   ENGINE=OLAP UNIQUE KEY(`a`) COMMENT "" 
   DISTRIBUTED BY HASH(`a`) BUCKETS 8 
   PROPERTIES ( 
       "replication_num" = "1", 
       "in_memory" = "false", 
       "storage_format" = "V2"
   );
   ```
   2. load data into `table_1` ( 10000 tuples)
   3. `alter table table_1 modify column b varchar(1);`
   4. be crashed.
   
   
   
   
   ### Anything Else?
   
   with a few tuples, eg. 10 tuples, after alter schema, be still alive, but 
results of `select * from table_1`  are messed.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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