[ 
https://issues.apache.org/jira/browse/ARROW-6930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Cutler resolved ARROW-6930.
---------------------------------
    Fix Version/s: 1.0.0
       Resolution: Fixed

Issue resolved by pull request 5693
[https://github.com/apache/arrow/pull/5693]

> [Java] Create utility class for populating vector values used for test 
> purpose only
> -----------------------------------------------------------------------------------
>
>                 Key: ARROW-6930
>                 URL: https://issues.apache.org/jira/browse/ARROW-6930
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Java
>            Reporter: Micah Kornfield
>            Assignee: Ji Liu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 11h 20m
>  Remaining Estimate: 0h
>
> There is a lot of verbosity in the construction of Arrays for testing 
> purposes (multiple lines of setSafe(...) or set(...).
> We should start adding a utility class to make test setup clearer and more 
> concise, note this class should be located in arrow-vector test package and 
> could be used in other module’s testing by adding dependency:
> {{<dependency>}}
> {{<groupId>org.apache.arrow</groupId>}}
> {{<artifactId>arrow-vector</artifactId>}}
> {{<version>${project.version}</version>}}
> {{<classifier>tests</classifier>}}
> {{<type>test-jar</type>}}
> {{<scope>test</scope>}}
> {{</dependency>}}
> Usage would be something like:
> {quote}try (IntVector vector = new IntVector(“vector”, allocator)) {
> ValueVectorPopulator.setVector(vector, 1, 2, null, 4, 5);
> output = doSomethingWith(input);
> assertThat(output).isEqualTo(expected);
> }
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to