apache / apache/iotdb

sessionDataSet.hasNext() 为false

Open
#6,980 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with the Java SessionDataSet.hasNext() path, including hasCachedResults(), and the session.executeQueryStatement(sql) call described in the report. Reproduce the intermittent case where getColumnNames() returns data but hasNext() is false, then verify that returned query rows can be iterated consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.