matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Bug]: insert ignore into decimal type not null results error

Open heni02 opened this issue 1 year ago • 30 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch Name

main

Commit ID

85734e607d12a7a34ac31f8cdc91e72d9eaf98e3

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

insert ignore into decimal type not null 按目前mo支持情况应该报null约束错误,但现在可以插入成功,且插入一行数据也是错误的 企业微信截图_bd59c997-3dc0-4fd6-ab36-89e0cdb30ee3 如果不能复现,drop表后再create表insert

Expected Behavior

No response

Steps to Reproduce

create table insert_ignore_04 (product_id INT NOT NULL AUTO_INCREMENT,product_name VARCHAR(255) NOT NULL,quantity_in_stock INT DEFAULT 0,price DECIMAL(10, 2) NOT NULL,PRIMARY KEY (product_id));
 insert ignore into insert_ignore_04(product_name, price) VALUES('Laptop', 1200.00),('Monitor', 150.00),('Keyboard', NULL),('Mouse', 15.00);

Additional information

No response

heni02 avatar Apr 07 '24 09:04 heni02

需要多执行几次才比较容易复现。 行健帮看看吧

ouyuanning avatar Apr 08 '24 01:04 ouyuanning

无进展

jensenojs avatar Apr 12 '24 10:04 jensenojs

not working on it

jensenojs avatar Apr 17 '24 10:04 jensenojs

等文档评审

jensenojs avatar Apr 22 '24 10:04 jensenojs

等文档评审

jensenojs avatar Apr 25 '24 10:04 jensenojs

同上

jensenojs avatar Apr 30 '24 10:04 jensenojs

同上

jensenojs avatar May 06 '24 10:05 jensenojs

同上

jensenojs avatar May 09 '24 10:05 jensenojs

暂无进展

jensenojs avatar May 14 '24 10:05 jensenojs

同上

jensenojs avatar May 20 '24 10:05 jensenojs

处理

  • https://github.com/matrixorigin/matrixone/issues/15809

jensenojs avatar May 23 '24 10:05 jensenojs

同上

jensenojs avatar May 28 '24 10:05 jensenojs

等重新设计方案

jensenojs avatar May 31 '24 10:05 jensenojs

处理 moc#3351

jensenojs avatar Jun 05 '24 10:06 jensenojs

无进展

jensenojs avatar Jun 11 '24 10:06 jensenojs

no process

jensenojs avatar Jun 14 '24 10:06 jensenojs

同上

jensenojs avatar Jun 19 '24 10:06 jensenojs

同上

jensenojs avatar Jun 24 '24 10:06 jensenojs

处理中移物联的insert pprof

jensenojs avatar Jul 01 '24 10:07 jensenojs

处理中移物联的insert pprof

jensenojs avatar Jul 04 '24 10:07 jensenojs

等on duplicate update的方案

jensenojs avatar Jul 09 '24 10:07 jensenojs

等on dup的解决方案

jensenojs avatar Jul 12 '24 10:07 jensenojs

not working on it

jensenojs avatar Jul 17 '24 10:07 jensenojs

not working on it

jensenojs avatar Jul 22 '24 10:07 jensenojs

#17500 完成后再看

aunjgr avatar Jul 25 '24 11:07 aunjgr

not working on it today

aunjgr avatar Jul 31 '24 10:07 aunjgr

#17500 完成后再看

aunjgr avatar Aug 06 '24 15:08 aunjgr

verified with https://github.com/matrixorigin/matrixone/commit/0a5786af3da2735110732c94427e15221d365fe6 image

@heni02 please double check and add bvt case, thank you

sukki37 avatar Oct 20 '24 12:10 sukki37

confirm,closed commit:0a3d52f3f9b4c740744f8567e689fed784feffe5 mysql> create table insert_ignore_04 (product_id INT NOT NULL AUTO_INCREMENT,product_name VARCHAR(255) NOT NULL,quantity_in_stock INT DEFAULT 0,price DECIMAL(10, 2) NOT NULL,PRIMARY KEY (product_id)); Query OK, 0 rows affected (0.05 sec)

mysql> insert ignore into insert_ignore_04(product_name, price) VALUES('Laptop', 1200.00),('Monitor', 150.00),('Keyboard', NULL),('Mouse', 15.00); ERROR 3819 (HY000): constraint violation: Column 'price' cannot be null

heni02 avatar Oct 23 '24 11:10 heni02

Hello @heni02. The bug issue in the BVT test code has not been removed,issues automatically open.

matrix-meow avatar Oct 23 '24 11:10 matrix-meow