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 
[[email protected]](mailto:[email protected]) 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to