You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/02 14:59:31 UTC
[GitHub] [doris] Lchangliang opened a new issue, #10563: [Bug] select default value error when enable_vectorized_engine = true
Lchangliang opened a new issue, #10563:
URL: https://github.com/apache/doris/issues/10563
### 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
master
### What's Wrong?
CREATE TABLE schema_change_update_regression_test (
`user_id` LARGEINT NOT NULL COMMENT "用户id",
`date` DATE NOT NULL COMMENT "数据灌入日期时间",
`city` VARCHAR(20) COMMENT "用户所在城市",
`age` SMALLINT COMMENT "用户年龄",
`sex` TINYINT COMMENT "用户性别",
`last_visit_date` DATETIME DEFAULT "1970-01-01 00:00:00" COMMENT "用户最后一次访问时间",
`last_update_date` DATETIME DEFAULT "1970-01-01 00:00:00" COMMENT "用户最后一次更新时间",
`last_visit_date_not_null` DATETIME NOT NULL DEFAULT "1970-01-01 00:00:00" COMMENT "用户最后一次访问时间",
`cost` BIGINT DEFAULT "0" COMMENT "用户总消费",
`max_dwell_time` INT DEFAULT "0" COMMENT "用户最大停留时间",
`min_dwell_time` INT DEFAULT "99999" COMMENT "用户最小停留时间")
UNIQUE KEY(`user_id`, `date`, `city`, `age`, `sex`) DISTRIBUTED BY HASH(`user_id`)
PROPERTIES ( "replication_num" = "1" );
INSERT INTO schema_change_update_regression_test VALUES
(1, '2017-10-01', 'Beijing', 10, 1, '2020-01-01', '2020-01-01', '2020-01-01', 1, 30, 20);
INSERT INTO schema_change_update_regression_test VALUES
(2, '2017-10-01', 'Beijing', 10, 1, '2020-01-02', '2020-01-02', '2020-01-02', 1, 31, 21);
ALTER table schema_change_update_regression_test ADD COLUMN new_column INT default "1";
SELECT * FROM schema_change_update_regression_test order by user_id DESC, last_visit_date;
+---------+------------+---------+------+------+---------------------+---------------------+--------------------------+------+----------------+----------------+------------+
| user_id | date | city | age | sex | last_visit_date | last_update_date | last_visit_date_not_null | cost | max_dwell_time | min_dwell_time | new_column |
+---------+------------+---------+------+------+---------------------+---------------------+--------------------------+------+----------------+----------------+------------+
| 2 | 2017-10-01 | Beijing | 10 | 1 | 2020-01-02 00:00:00 | 2020-01-02 00:00:00 | 2020-01-02 00:00:00 | 1 | 31 | 21 | 1 |
| 1 | 2017-10-01 | Beijing | 10 | 1 | 2020-01-01 00:00:00 | 2020-01-01 00:00:00 | 2020-01-01 00:00:00 | 1 | 30 | 20 | 0 |
+---------+------------+---------+------+------+---------------------+---------------------+--------------------------+------+----------------+----------------+------------+
new_column should be '1'.
### What You Expected?
default value is correct.
### 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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] BiteTheDDDDt commented on issue #10563: [Bug] select default value error when enable_vectorized_engine = true
Posted by GitBox <gi...@apache.org>.
BiteTheDDDDt commented on issue #10563:
URL: https://github.com/apache/doris/issues/10563#issuecomment-1173294013
Anyone else try to fix this? Maybe I can do some invastigate
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] yiguolei closed issue #10563: [Bug] select default value error when enable_vectorized_engine = true
Posted by GitBox <gi...@apache.org>.
yiguolei closed issue #10563: [Bug] select default value error when enable_vectorized_engine = true
URL: https://github.com/apache/doris/issues/10563
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org