mongodb / mongo-jdbc-driver

JDBC Driver for MongoDB Atlas SQL interface
Apache License 2.0
37 stars 33 forks source link

SQL-152: Fix empty-batch bug when fetchSize is zero #36

Closed rychipman closed 3 years ago

rychipman commented 3 years ago

If we set batchSize to zero on an AggregateIterable, the cursor will not return any results. Instead of unconditionally setting batchSize to fetchSize, we should do so only when it's non-zero.