use of org.apache.drill.exec.physical.resultSet.ResultSetCopier in project drill by apache.
the class TestResultSetCopier method testImmediateClose.
@Test
public void testImmediateClose() {
ResultSetCopier copier = newCopier(new DataGen());
// Close OK before things got started
copier.close();
// Second close is benign
copier.close();
}
use of org.apache.drill.exec.physical.resultSet.ResultSetCopier in project drill by apache.
the class TestResultSetCopier method testCloseWithData.
@Test
public void testCloseWithData() {
ResultSetCopier copier = newCopier(new DataGen());
// Start batch, with data.
copier.startOutputBatch();
copier.nextInputBatch();
copier.copyNextRow();
// Close OK with input and output batch allocated.
copier.close();
// Second close is benign
copier.close();
}
Aggregations