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 12:29:11 UTC

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

JackieTien97 commented on issue #1839:
URL: https://github.com/apache/iotdb/issues/1839#issuecomment-712814053


   > 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
   
   value列的类型应该就是string,因为如果select last包含多个时间序列,这多个时间序列的类型都不一样,但是他们的值都需要放在value这一列,所以value列的类型只能是string了。


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