Skip to content

Commit

Permalink
Make CHARTEVENTS VALUENUM colum wide.
Browse files Browse the repository at this point in the history
CHARTEVENTS VALUENUM column was set to DECIMAL(22, 10) but that data has to be truncated when it is inserted, because the actual data contains 7 integer part digits and 23 or less than decimal places at most. Then I made the column DECIMAL(30, 23).
  • Loading branch information
KenjiOhtsuka authored Jul 29, 2023
1 parent 54fc00f commit 10a0864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimic-iii/buildmimic/mysql/1-define.sql
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ CREATE TABLE CHARTEVENTS ( -- rows=263201375
STORETIME DATETIME,
CGID SMALLINT UNSIGNED,
VALUE TEXT, -- max=91
VALUENUM DECIMAL(22, 10),
VALUENUM DECIMAL(30, 23),
VALUEUOM VARCHAR(50), -- max=17
WARNING TINYINT UNSIGNED,
ERROR TINYINT UNSIGNED,
Expand Down

0 comments on commit 10a0864

Please sign in to comment.