Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert default value failed when column is nullable and do not set default value explicitly #1555

Closed
zhangy5 opened this issue Jul 26, 2019 · 1 comment
Assignees
Labels
kind/fix Categorizes issue or PR as related to a bug.

Comments

@zhangy5
Copy link
Contributor

zhangy5 commented Jul 26, 2019

Describe the bug
Create table like

CREATE TABLE d (
k1 int(11) NULL COMMENT "",
k2 int(11) NULL COMMENT ""
) ENGINE=OLAP
AGGREGATE KEY(k1, k2)
DISTRIBUTED BY HASH(k1) BUCKETS 5
PROPERTIES (
"storage_type" = "COLUMN"
);

When I insert data failed.

mysql> insert into d (k1) values (1);
ERROR 5002 (HY000): 'k2' must be explicitly mentioned in column permutation

It is expected that this insert will be succeeded, and the value of k2 is null.

@EmmyMiao87
Copy link
Contributor

#1556

@morningman morningman added the kind/fix Categorizes issue or PR as related to a bug. label Jul 30, 2019
@zhangy5 zhangy5 closed this as completed Jul 30, 2019
luwei16 pushed a commit to luwei16/incubator-doris that referenced this issue Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/fix Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants