HTHou commented on issue #15480:
URL: https://github.com/apache/iotdb/issues/15480#issuecomment-2865377801
使用下面的代码没有复现
```python
session.open(False)
for j in range(6):
data = np.full(80000, 1.1, dtype=float)
np_values = [
np.array(data, TSDataType.FLOAT.np_dtype())
]
tt = np.arange(j * 80000, (j + 1) * 80000)
np_tt = np.array(tt, TSDataType.INT64.np_dtype())
bk_size = 500
if len(data) < bk_size:
bk_size = len(data)
for i in range(0, len(tt), bk_size):
tem_value = np_values[0][i:i + bk_size]
tem_tt = np_tt[i:i + bk_size]
np_tablet = NumpyTablet("root.sg.d1", ["measurement"],
[TSDataType.FLOAT],
[tem_value], tem_tt)
try:
session.insert_tablet(np_tablet)
except Exception as e:
print(e)
session.close()
```
查询count显示数据量没问题
```
IoTDB> select count(*) from root.**
+-----------------------------+
|count(root.sg.d1.measurement)|
+-----------------------------+
| 480000|
+-----------------------------+
Total line number = 1
```
建议检查一下写入的单个序列是否存在相同的时间戳,时间戳在一个时间序列中相当于主键,写入相同的时间戳相当于update,不会增加count。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]