xiaozhihong created IOTDB-2753:
----------------------------------
Summary: Insert a time series with a null value and report 500
Key: IOTDB-2753
URL: https://issues.apache.org/jira/browse/IOTDB-2753
Project: Apache IoTDB
Issue Type: Bug
Components: Core/Server
Affects Versions: 0.13.0-SNAPSHOT
Reporter: xiaozhihong
Attachments: image-2022-03-17-11-06-06-935.png
Whether the metadata is automatically created or the metadata is created in
advance, an error 500 is reported when inserting a null value.
{code:java}
IoTDB> show timeseries root.sg.**
+-------------+-----+-------------+--------+--------+-----------+----+----------+
| timeseries|alias|storage
group|dataType|encoding|compression|tags|attributes|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
|root.sg.d1.s3| null| root.sg| BOOLEAN| RLE| SNAPPY|null|
null|
|root.sg.d1.s4| null| root.sg| TEXT| PLAIN| SNAPPY|null|
null|
|root.sg.d1.s1| null| root.sg| FLOAT| RLE| SNAPPY|null|
null|
|root.sg.d1.s2| null| root.sg| INT32| RLE| SNAPPY|null|
null|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
Total line number = 4
It costs 0.034s
IoTDB> insert into root.sg.d1(time,s1,s2,s3,s4) values(1,1.2,null,true,'V1');
Msg: 500: [INTERNAL_SERVER_ERROR(500)] Exception occurred: executeNonQueryPlan
failed. java.lang.Boolean cannot be cast to java.lang.Integer
{code}
The log is:
!image-2022-03-17-11-06-06-935.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)