Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unexpected behavior of the CurrentBatchRowCount() method

Open
#53 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
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
backend, databases

Research direction

Start by reproducing the issue with the provided C# example against library version 2.0.8, then inspect the implementation of CurrentBatchRowCount() and compare it with the earlier RowCount behavior. Done means the method returns the dataset's actual record count and the example no longer initializes the list with zero.

Written by the indexing model from the issue text.

Description

In version 2.0.8 of the library, this method always returns 0, even though the dataset contains records. In earlier versions of the library, the RowCount property worked correctly and returned the actual number of records.

Code example:

var count = dataset.CurrentBatchRowCount();
// variable count always contains 0

var list = new List<DataItem>(count);
while (await dataset.HasNextAsync())
{
    var row = dataset.Next();
    list.Add(new DataItem(row, false));
}
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.