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 2022/08/12 08:22:50 UTC

[GitHub] [iotdb] szz-9503 opened a new issue, #6980: sessionDataSet.hasNext() 为false

szz-9503 opened a new issue, #6980:
URL: https://github.com/apache/iotdb/issues/6980

   **Describe the bug**
    同一条sql,在时序数据库可以查询得出数据,但是我在java 中使用 session.executeQueryStatement(sql) 方法,获取到的SessionDataSet,sessionDataSet.getColumnNames() 是有数据的,但是 sessionDataSet.hasNext() 中的  hasCachedResults() 为false ,  (这个现象不是经常出现)
     
   
   
   


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

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org.apache.org

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


[GitHub] [iotdb] szz-9503 commented on issue #6980: sessionDataSet.hasNext() 为false

Posted by GitBox <gi...@apache.org>.
szz-9503 commented on issue #6980:
URL: https://github.com/apache/iotdb/issues/6980#issuecomment-1214531550

   ![image](https://user-images.githubusercontent.com/66717160/184565363-71774714-afc6-4a5d-aa1f-3e474fd31305.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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] szz-9503 commented on issue #6980: sessionDataSet.hasNext() 为false

Posted by GitBox <gi...@apache.org>.
szz-9503 commented on issue #6980:
URL: https://github.com/apache/iotdb/issues/6980#issuecomment-1214529837

   ![image](https://user-images.githubusercontent.com/66717160/184565138-9a50cc96-a88d-4a4d-8eaa-607d08cb930d.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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] szz-9503 commented on issue #6980: sessionDataSet.hasNext() 为false

Posted by GitBox <gi...@apache.org>.
szz-9503 commented on issue #6980:
URL: https://github.com/apache/iotdb/issues/6980#issuecomment-1214547465

   我让数据采集跑了2天,发现之前那个问题不见了,我会继续观察这个问题,如果再次发生,我会将SQL贴入到这个帖子里面的,麻烦你们了


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

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] jixuan1989 commented on issue #6980: sessionDataSet.hasNext() 为false

Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on issue #6980:
URL: https://github.com/apache/iotdb/issues/6980#issuecomment-1214310322

   It obeys expected that `getColumnNames()` has names.
   
   For example, the following sql has no data, but the resultset has column names.
   
   ```sql
   IoTDB> select * from root.** where time > 100;
   +----+--------------+--------------+
   |Time|root.sg1.d1.s1|root.sg1.d2.s1|
   +----+--------------+--------------+
   +----+--------------+--------------+
   Empty set.
   It costs 0.066s
   IoTDB> select * from root.** where time > 100 align by device;
   +----+------+--+
   |Time|Device|s1|
   +----+------+--+
   +----+------+--+
   Empty set.
   It costs 0.018s
   ```
   
   > 同一条sql,在时序数据库可以查询得出数据,但是 sessionDataSet.hasNext() 中的 hasCachedResults() 为false 
   
   it does matter that `HasCachedResults() == false`. Whether a client can get data just depends on `sessionDataSet.hasNext() == true`. 
   
   Even though it can not be stable reproduced, you may still paste the sqls  and code snippets to help us check whether it is a bug.
   


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

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] szz-9503 commented on issue #6980: sessionDataSet.hasNext() 为false

Posted by GitBox <gi...@apache.org>.
szz-9503 commented on issue #6980:
URL: https://github.com/apache/iotdb/issues/6980#issuecomment-1214532837

   我使用的是session 中提供的example,在使用过程中会遇见数据库有数据,但是就如你所说的sessionDataSet.hasNext()==false 的情况


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

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] jixuan1989 commented on issue #6980: sessionDataSet.hasNext() 为false

Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on issue #6980:
URL: https://github.com/apache/iotdb/issues/6980#issuecomment-1214534328

   可以打印一下代码里的SQL吗。


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

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] szz-9503 commented on issue #6980: sessionDataSet.hasNext() 为false

Posted by GitBox <gi...@apache.org>.
szz-9503 commented on issue #6980:
URL: https://github.com/apache/iotdb/issues/6980#issuecomment-1212858330

   导致我获取不到 时序数据的值


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

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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