You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> > Sorry, I missed something. Could you provide an example to explain the difference?
As for the physical table, here I add some constraints for val:
CREATETABLEphy (ts timestamptime index, val double not null default 0) engine=metric with ("physical_metric_table"="");
Currently we can create a logical table with the val column but without constraints (or add more constraints), and also change the data type of it:
CREATETABLEphy (ts timestamptime index, val int, host string, primary key (host)) engine=metric with ("on_physical_table"="phy");
I wonder if its appropriate to create sql like this for fuzz test.
I got you. It's a bug; it will throw an error if users try to insert values into a logical table. Some validation needs to be added while creating the logical table(It will be tracked in another issue).
Reproduce steps:
Create tables
CREATETABLE `phy`(ts timestamptime index, val double) engine=metric with ("physical_metric_table"="");
CREATETABLEt1 (ts timestamptime index, val int, host string, primary key (host)) engine=metric with ("on_physical_table"="phy");
CREATETABLEt2 (ts timestamptime index, val string, host string, primary key (host)) engine=metric with ("on_physical_table"="phy");
Insert values
mysql> insert t2 (host,ts,val) values ("hi",1702433146000,"10");
ERROR 1815 (HY000): Invalid request to region 4398046511104(1024, 0), reason: column val expect type Float64(Float64Type), given: STRING(12)
mysql> insert t1 (host,ts,val) values ("hi",1702433146000,1);
ERROR 1815 (HY000): Invalid request to region 4398046511104(1024, 0), reason: column val expect type Float64(Float64Type), given: INT32(3)
I got you. It's a bug; it will throw an error if users try to insert values into a logical table. Some validation needs to be added while creating the logical table(It will be tracked in another issue).
Reproduce steps:
Originally posted by @WenyXu in #3741 (comment)
The text was updated successfully, but these errors were encountered: