You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Boris Zhu (Jira)" <ji...@apache.org> on 2020/12/10 03:51:00 UTC
[jira] [Assigned] (IOTDB-1050) Count timeserise column name is
wrong
[ https://issues.apache.org/jira/browse/IOTDB-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Zhu reassigned IOTDB-1050:
--------------------------------
Assignee: Boris Zhu
> Count timeserise column name is wrong
> -------------------------------------
>
> Key: IOTDB-1050
> URL: https://issues.apache.org/jira/browse/IOTDB-1050
> Project: Apache IoTDB
> Issue Type: Bug
> Reporter: Kaifeng Xue
> Assignee: Boris Zhu
> Priority: Major
>
> In master, when using session iterator to run:
> ```
> SessionDataSet sessionDataSet = session.executeQueryStatement("COUNT TIMESERIES root.sg1.d1");
> sessionDataSet.setFetchSize(1024);
> DataIterator iterator = sessionDataSet.iterator();
> int count = 0;
> while (iterator.next()) {
> System.out.println(iterator.getString("count"));
> count++;
> }
> ```
> You will get a NPE because the column name in iterator's columnOrdinalMap is called "child path" rather than "count"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)