apache / apache/iotdb

iotdb无法写入无信号key的数据

Open
#11,405 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

各位好,
我是用版本iot版本1.1.0,
使用对齐方式消费kafka写入iotdb,发现如果字段不存在,则该条数据就查不到,程序也没任何错误
日志可以看到 org.apache.iotdb.session.Session - All values are null and this submission is ignored

比如:
{
"uuid": "10001",
"GnsAlt": "5.0",
"Longtude": "119.317833",
"GPSts": "3"
"event_time": "2023-10-26 15:45:40"
}
uuid为设备,GnssAlt Longitude GPSSts 三个为信号值,event_time为事件事件,
如果正常传入这样的json,iotdb能正常写入,正常查询。
但是如果传入不带任何一个信号,但是有设备名称,事件时间如下:
{
"uuid": "10002",
"event_time": "2023-10-26 15:45:40"
}
iotdb不报错,但是查询不到10002设备的数据,
请问这样是否正常?按我理解获取不到信号key,希望存入null的。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the aligned Kafka ingestion case in IoTDB 1.1.0 with a device and event_time but no signal fields, then inspect the reported Session log message: “All values are null and this submission is ignored.” Compare the result with a submission containing signal values and query both devices. Done should establish whether this behavior is expected and, if not, define the intended handling and add a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kafka
Domain
data-engineering, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.