apache / apache/iotdb-client-csharp
Unexpected behavior of the CurrentBatchRowCount() method
- Dominant language
- C#
- Stars
- 24
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
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:
```csharp
var count = dataset.CurrentBatchRowCount();
// variable count always contains 0
var list = new List(count);
while (await dataset.HasNextAsync())
{
var row = dataset.Next();
list.Add(new DataItem(row, false));
}
```
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
- Tech stack
- csharp
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100