CreateEmptyStripeBuffers in cstore_writer

21 views
Skip to first unread message

sri harsha

unread,
Nov 2, 2015, 5:25:28 AM11/2/15
to cstore users


  Hi ,

         In CreateEmptyStripeBuffers function in cstore_writer.c contains the following code snippet


ColumnBlockData **blockDataArray = palloc0(columnCount * sizeof(ColumnBlockData*));

ColumnBlockData *blockData = palloc0(sizeof(ColumnBlockData));
bool *existsArray = palloc0(blockRowCount * sizeof(bool));
Datum *valueArray = palloc0(blockRowCount * sizeof(Datum));

blockData->existsArray = existsArray;
blockData->valueArray = valueArray;
blockData->valueBuffer = NULL;
blockDataArray[columnIndex] = blockData;

             
         What is the significance of the above code block ?? blockDataArray created is not assigned anywhere in this function . Am i missing something ??

Thanks,
Harsha

Murat Tuncer

unread,
Nov 2, 2015, 6:33:42 AM11/2/15
to sri harsha, cstore users
Hi Harsha

It does not look like it is serving any purpose there. References to ColumnBlockData should be removed from there.


--
You received this message because you are subscribed to the Google Groups "cstore users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cstore-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Murat Tuncer
Software Engineer | Citus Data
mtu...@citusdata.com
Reply all
Reply to author
Forward
0 new messages