learner1212 opened a new issue, #28741: URL: https://github.com/apache/doris/issues/28741
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 2.0.3 ### What's Wrong? 现有表结构: 表结构 : CREATE TABLE test ( a tinyint(4) NULL DEFAULT "0" , b int(11) DEFAULT "0" , c int(11) DEFAULT "0" , t DATETIMEV2 COMMENT "时间", d bigint(20) SUM NULL DEFAULT "0", e bigint(20) SUM NULL DEFAULT "0" ) AGGREGATE KEY(a, b, c, t) PARTITION BY RANGE(t) () DISTRIBUTED BY HASH(a) BUCKETS AUTO PROPERTIES ( "dynamic_partition.enable" = "true", "dynamic_partition.time_unit" = "DAY", "dynamic_partition.start" = "-3", "dynamic_partition.end" = "3", "dynamic_partition.prefix" = "p", "dynamic_partition.time_zone" = "Asia/Shanghai", "dynamic_partition.create_history_partition" = "true", "dynamic_partition.history_partition_num" = "3", "dynamic_partition.replication_num" = "2", "light_schema_change" = "true" ); 插入一条记录: INSERT INTO test(a,b,c,t,d,e) VALUES (1,2,3,'2023-12-19 18:21:00', 56, 78) 然后新增维度和度量 ALTER TABLE test ADD COLUMN `a1` INT KEY AFTER a, ADD COLUMN `b1` VARCHAR(1024) KEY AFTER b, ADD COLUMN `d1` BIGINT SUM AFTER d; 再插入一条数据: INSERT INTO test(a,a1,b,b1,c,t,d,d1,e) VALUES (1,1,2,'-',3,'2023-12-20 17:21:00', 56, 78, 89) 再执行查询sql: select b1 from test where t >= '2023-12-20 17:21:00' 报错: Execution failed: Error Failed to execute sql: java.sql.SQLException: (conn=187) errCode = 2, detailMessage = Unexpected exception: null ### What You Expected? 解释bug出现的原因,并修复bug ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] 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: [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]
