Unexpected behavior of the Next() method in SessionDataSet

Open
#55 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
databases

Research direction

Start by locating the SessionDataSet.Next() implementation and tracing how it populates the Measurements collection. Reproduce the provided SELECT query, then compare the first record's measurements with the query result, focusing on the unexpected has_signal___int measurement. Done means Next() no longer adds measurements absent from the result and the behavior is covered by a regression check.

Written by the indexing model from the issue text.

Description

In the current version of the library, the Next() method behaves incorrectly. In certain cases, values are added to the Measurements collection that should not be included.

For example, when executing a SELECT * FROM root.raw.droot.test.test_device WHERE time >= 1773618600000 and time < 1773621600000 ORDER BY timequery, the first record contains the has_signal___int measurement, even though according to the query result, it should not be present.

Image Image
Dominant language
C#
Stars
24
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/iotdb-client-csharp

All issues in apache/iotdb-client-csharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.