You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/10/20 11:45:40 UTC

[GitHub] [iotdb] try-anything commented on issue #1839: 在调用DataIterator的getInt(columnName)方法时出现了数组下标越界的错误

try-anything commented on issue #1839:
URL: https://github.com/apache/iotdb/issues/1839#issuecomment-712791935


   1.create a timeseries datatype INT32 
   2.use sessionpool connnect iotdbserver
   3.codes like bottom
   SessionDataSetWrapper wrapper = SessionPool.executeQueryStatement();
   DataIterator dataIterator = wrapper.iterator();
   int sum = 0;
   while (dataIterator.next()) {
   int sum+= dataIterator.getInt(ColumnName);
   }
   ps: when i use getString(ColumnName) can get a String value ,but using getInt will get exception


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org