From 10a0864d254bd09b00bcd03ab0186d7f302027cd Mon Sep 17 00:00:00 2001 From: Kenji Otsuka Date: Sat, 29 Jul 2023 10:15:09 +0900 Subject: [PATCH] Make CHARTEVENTS VALUENUM colum wide. 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). --- mimic-iii/buildmimic/mysql/1-define.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimic-iii/buildmimic/mysql/1-define.sql b/mimic-iii/buildmimic/mysql/1-define.sql index d83ab4b4c..054d659d3 100644 --- a/mimic-iii/buildmimic/mysql/1-define.sql +++ b/mimic-iii/buildmimic/mysql/1-define.sql @@ -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,