iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

sessionPool.deleteTimeseries操作删除空的路径列表时,会报错

Open fzjy opened this issue 1 year ago • 3 comments

如题

    //将准备删除的时间序列进行删除,其中len(timeSeriesToBeDeleted) == 0
    sessionPool.deleteTimeseries(timeSeriesToBeDeleted);

报错: 508:Timeseries [root] does not exist or is represented by schema template

依赖如下: <groupId>org.apache.iotdb</groupId> <artifactId>iotdb-session</artifactId> 1.2.2

fzjy avatar Nov 24 '23 06:11 fzjy

Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!

github-actions[bot] avatar Nov 24 '23 06:11 github-actions[bot]

如果时间序列名字为 root.db.s1,那么你需要 delete timeseriesroot.db.s1,而不是 delete timeseries s1

wanghui42 avatar Nov 29 '23 06:11 wanghui42

空的路径列表也不需要删除吧。 另外 删除空的 抛出异常也是预期内的行为,因为这不是一个可以正常处理的操作

CritasWang avatar Dec 25 '23 08:12 CritasWang