You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Haonan Hou (Jira)" <ji...@apache.org> on 2022/07/21 02:43:00 UTC

[jira] [Reopened] (IOTDB-3910) Use method executeQueryStatement of session api ,the result is wrong

     [ https://issues.apache.org/jira/browse/IOTDB-3910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Haonan Hou reopened IOTDB-3910:
-------------------------------

> Use method executeQueryStatement of  session api  ,the result is wrong
> ----------------------------------------------------------------------
>
>                 Key: IOTDB-3910
>                 URL: https://issues.apache.org/jira/browse/IOTDB-3910
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 0.13.1-SNAPSHOT
>            Reporter: suchenglong
>            Priority: Major
>
> 使用session api进行存储组数量的查询,结果不是预期的。
> 注:除这个查询语句外,其余查询都有这个问题.
> 代码:
> int num = 20;
> //创建存储组
> for (int i = 0; i < num; i++)
> { String groupName = storageGroupPrefix + i; //storageGroupPrefix= root.clsu3.test sessionPool.setStorageGroup(groupName); createStorageGroups.add(groupName); }
> SessionDataSetWrapper storageGroup = sessionPool.executeQueryStatement("show storage group " + prefix + ".**");
> if (num != storageGroup.getBatchSize())
> { logger.error("createStorageGroup-发生错误 except:" + num + " ,实际:" + storageGroup.getBatchSize()); }
> 结果:
> storageGroup.getBatchSize() 结果为5000条,期望为20条
> IoTDB> show storage group root.clsu3.**
> +-----------------+
> |   storage group|
> +-----------------+
> |root.clsu3.test16|
> |root.clsu3.test15|
> |root.clsu3.test14|
> |root.clsu3.test13|
> |root.clsu3.test12|
> |root.clsu3.test11|
> |root.clsu3.test10|
> |root.clsu3.test0|
> |root.clsu3.test1|
> |root.clsu3.test19|
> |root.clsu3.test18|
> |root.clsu3.test17|
> |root.clsu3.test4|
> |root.clsu3.test5|
> |root.clsu3.test2|
> |root.clsu3.test3|
> |root.clsu3.test8|
> |root.clsu3.test9|
> |root.clsu3.test6|
> |root.clsu3.test7|
> +-----------------+
> Total line number = 20
> It costs 0.015s
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)