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

   # Proposed changes
   
   How to reproduce:
   
   ```
   CREATE TABLE `test_tbl` (
     `k1` int(11) NOT NULL,
     `k2` varchar(4096) NOT NULL,
     `k3` varchar(4096) NOT NULL,
     `v1` float SUM NOT NULL,
     `v2` decimal(20, 7) SUM NOT NULL
   ) ENGINE=OLAP
   AGGREGATE KEY(`k1`, `k2`, `k3`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`k1`, `k2`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "storage_format" = "V2",
   "disable_auto_compaction" = "false"
   );
   
   insert into test_tbl values(1,"1","20200101",1,1), (2,"2","2020/01/02",2,2), 
(3,"3","2020-01-03",3,3), (4,"4","200104",4,4), (5,"5","20/01/05",5,5), 
(6,"6","20-01-06",6,6);
   
   alter table test_tbl MODIFY COLUMN k3 date;
   ERROR 1105 (HY000): errCode = 2, detailMessage = Can not change VARCHAR to 
DATEV2
   ```
   
   ## Problem summary
   
   Describe your changes.
   
   ## Checklist(Required)
   
   * [ ] Does it affect the original behavior
   * [x] Has unit tests been added
   * [ ] Has document been added or modified
   * [ ] Does it need to update dependencies
   * [ ] Is this PR support rollback (If NO, please explain WHY)
   
   ## 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