You're confusing how many slots of memory with the precision of the count. We have 65536 memory slots (we use a two byte pointer to point to memory slots). We use a four byte value to maintain the number of populated slots. So the MAX_BATCH_SIZE is, in fact 65536.
-- Jacques Nadeau CTO and Co-Founder, Dremio On Fri, Jul 24, 2015 at 11:00 PM, Daniel Barclay <dbarc...@maprtech.com> wrote: > In org.apache.drill.exec.record.RecordBatch, MAX_BATCH_SIZE is 65536. > > Why isn't that 65535? Is a batch size of zero not possible? > > > Daniel > -- > Daniel Barclay > MapR Technologies >