Closed DmitryZhelnin closed 7 months ago
In this while cycle hasMore variable actually means that previous read was successful but not that there is more data to read.
while
hasMore
https://github.com/DarkWanderer/ClickHouse.Client/blob/babcce5009669761b8b02311c5e9b358ef1ffdff/ClickHouse.Client/Copy/ClickHouseBulkCopy.cs#L176-L187
so when BatchSize equals to the size of provided collection new request with empty stream is created (in outer do/while loop) and sent to the server.
BatchSize
Hi. Thanks for report - looks like ClickHouseBulkCopy is due for a minor rewrite
ClickHouseBulkCopy
Fixed in latest version
In this
while
cyclehasMore
variable actually means that previous read was successful but not that there is more data to read.https://github.com/DarkWanderer/ClickHouse.Client/blob/babcce5009669761b8b02311c5e9b358ef1ffdff/ClickHouse.Client/Copy/ClickHouseBulkCopy.cs#L176-L187
so when
BatchSize
equals to the size of provided collection new request with empty stream is created (in outer do/while loop) and sent to the server.