Search in sources :

Example 11 with CopierTester

use of org.apache.drill.exec.physical.impl.xsort.managed.SortTestUtilities.CopierTester in project drill by axbaretto.

the class TestCopier method testSingleRow.

@Test
public void testSingleRow() throws Exception {
    BatchSchema schema = SortTestUtilities.nonNullSchema();
    CopierTester tester = new CopierTester(fixture);
    tester.addInput(fixture.rowSetBuilder(schema).addRow(10, "10").withSv2().build());
    tester.addOutput(fixture.rowSetBuilder(schema).addRow(10, "10").build());
    tester.run();
}
Also used : BatchSchema(org.apache.drill.exec.record.BatchSchema) CopierTester(org.apache.drill.exec.physical.impl.xsort.managed.SortTestUtilities.CopierTester) OperatorTest(org.apache.drill.categories.OperatorTest) SubOperatorTest(org.apache.drill.test.SubOperatorTest) Test(org.junit.Test)

Aggregations

CopierTester (org.apache.drill.exec.physical.impl.xsort.managed.SortTestUtilities.CopierTester)11 BatchSchema (org.apache.drill.exec.record.BatchSchema)11 OperatorTest (org.apache.drill.categories.OperatorTest)9 SubOperatorTest (org.apache.drill.test.SubOperatorTest)9 Test (org.junit.Test)9 SingleRowSet (org.apache.drill.test.rowSet.RowSet.SingleRowSet)1 SchemaBuilder (org.apache.drill.test.rowSet.schema.SchemaBuilder)1