apache / apache/iotdb-client-csharp

Unexpected behavior of the CurrentBatchRowCount() method

Aperta
#53 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
24
Fork
6
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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));
}
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
backend, databases
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.