Yeah, I wrote some code which does the thing (cannot use the latest
arrow version so far). The only missing feature is Date32/Date64.
Are they supported as part of ArrayOf or not implemented because it
might be possible (guess) to convert uint32 to Date32 for example?

On Mon, Jun 22, 2020 at 7:31 PM Wes McKinney <wesmck...@gmail.com> wrote:
>
> I think you can pretty easily use the new
> `RandomArrayGenerator::ArrayOf` function to generate a random
> RecordBatch given a schema and length.
>
> On Mon, Jun 22, 2020 at 10:52 AM Kirill Lykov <lykov.kir...@gmail.com> wrote:
> >
> > Thanks for the reply.
> > I saw an Array generator and decided to ask if there is already
> > something like RandomTableGenerator before implementing myself one
> > using RandomArrayGenerator.
> >
> > On Mon, Jun 22, 2020 at 4:49 PM Francois Saint-Jacques
> > <fsaintjacq...@gmail.com> wrote:
> > >
> > > Hello,
> > >
> > > We use this extensively in unit tests, see [1]
> > >
> > > François
> > > [1] 
> > > https://github.com/apache/arrow/blob/master/cpp/src/arrow/testing/random.h
> > >
> > > On Mon, Jun 22, 2020 at 9:51 AM Kirill Lykov <lykov.kir...@gmail.com> 
> > > wrote:
> > > >
> > > > Hi,
> > > >
> > > > I wonder if there is existing C++ code which allows to generate a
> > > > random arrow table by given metadata. Maybe, it is not part of the
> > > > arrow library but someone wrote such a builder. I want to use it for
> > > > benchmarking purposes (using google benchmark).
> > > >
> > > > --
> > > > Best regards,
> > > > Kirill Lykov,
> > > > personal page: http://kirilllykov.github.com/blog/about/
> > > > tel.: +41 765 27 6229
> >
> >
> >
> > --
> > Best regards,
> > Kirill Lykov



-- 
Best regards,
Kirill Lykov

Reply via email to