[ https://issues.apache.org/jira/browse/IOTDB-2732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17506001#comment-17506001 ]
Haonan Hou commented on IOTDB-2732: ----------------------------------- The reason is 3.4028235E300 is too large for float type but not for double type. When parse String `3.4028235E300` to float value, JVM will not throw an exception but parse it to a special value `Infinity`. To fix it, we can add more check. > Insert an invalid value to timseries whoes datatype is 'float' > -------------------------------------------------------------- > > Key: IOTDB-2732 > URL: https://issues.apache.org/jira/browse/IOTDB-2732 > Project: Apache IoTDB > Issue Type: Improvement > Reporter: FengQingxin > Assignee: Haonan Hou > Priority: Minor > Labels: easy-fix > > Hi IoTDBers > If I insert an invalid value to timseries whoes datatype is 'float',there > is a confused. > Repetition steps: > 1. create timeseries root.wt04.PLAIN1 WITH > DATATYPE={color:#FF0000}FLOAT{color},ENCODING=PLAIN,COMPRESSOR=UNCOMPRESSED > 2. insert into root.wt04(timestamp,PLAIN1) > values(5,{color:#FF0000}3.4028235E300{color}) > 3.select PLAIN1 from root.wt04 > Time |root.wt04.PLAIN1 | > -------------------------------- > 5 |{color:#FF0000}Infinity {color}| > Do we need to reject that insert request? > > > ps:It can be displayed normally,if we use data type double > Time |root.wt05.PLAIN1 | > --------------------------------- > 5 |3.4028235E300 | -- This message was sent by Atlassian Jira (v8.20.1#820001)