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/08/18 03:00:28 UTC

[GitHub] [incubator-iotdb] ATM006 opened a new issue #1630: count(xxx)无法用代码获取数量

ATM006 opened a new issue #1630:
URL: https://github.com/apache/incubator-iotdb/issues/1630


   SELECT count(eid) FROM root.IoTDB
   ![image](https://user-images.githubusercontent.com/24607498/90465420-ec315000-e141-11ea-9538-c506a612f71b.png)
   


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



[GitHub] [incubator-iotdb] qiaojialin commented on issue #1630: count(xxx)无法用代码获取数量

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on issue #1630:
URL: https://github.com/apache/incubator-iotdb/issues/1630#issuecomment-676958556


   用 SessionDataSet 的 Iterator 遍历结果集,需要先调用 iterator 的 next 方法准备数据,才能通过 getXXX() 获取数据。即使只有一行也需要先调用 next
   
   ![image](https://user-images.githubusercontent.com/7240743/90714280-e7070900-e2d9-11ea-9183-12408ac1fd03.png)
   


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



[GitHub] [incubator-iotdb] qiaojialin commented on issue #1630: count(xxx)无法用代码获取数量

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on issue #1630:
URL: https://github.com/apache/incubator-iotdb/issues/1630#issuecomment-676953083


   用的0.10.0发布版吗? count 结果应该是 long 类型的,可以试试 getLong。要是方便的话可以提供一个简单的复现代码


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



[GitHub] [incubator-iotdb] ATM006 closed issue #1630: count(xxx)无法用代码获取数量

Posted by GitBox <gi...@apache.org>.
ATM006 closed issue #1630:
URL: https://github.com/apache/incubator-iotdb/issues/1630


   


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



[GitHub] [incubator-iotdb] ATM006 commented on issue #1630: count(xxx)无法用代码获取数量

Posted by GitBox <gi...@apache.org>.
ATM006 commented on issue #1630:
URL: https://github.com/apache/incubator-iotdb/issues/1630#issuecomment-677476947


   非常感谢  问题解决啦~


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