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/14 08:26:26 UTC

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

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