[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-3239) [C++] Improve random data generation functions

Wes McKinney created ARROW-3239:

             Summary: [C++] Improve random data generation functions
                 Key: ARROW-3239
                 URL: https://issues.apache.org/jira/browse/ARROW-3239
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Wes McKinney

Our various code for generating random datasets for testing and benchmarks is a bit verbose / awkward.

I suggest defining a nicer API so we can write code like:

auto arr = random::int32(length, seed);
auto arr = random::varbinary(length, max_value_size, seed);

Since this is only for test code, we can abort if anything returns error Status to make the API more convenient

This message was sent by Atlassian JIRA