apache / apache/iotdb-client-csharp
Unexpected behavior of the CurrentBatchRowCount() method
未關閉
- 主要語言
- C#
- 星號
- 24
- 分支
- 6
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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));
}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先,使用提供的 C# 範例在函式庫版本 2.0.8 上重現問題,接著檢查 CurrentBatchRowCount() 的實作,並與先前的 RowCount 行為進行比較。完成條件是該方法回傳 dataset 的實際記錄數,且範例不再以 0 初始化清單。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- backend, databases
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100