Search in sources :

Example 6 with FixtureBuilder

use of org.apache.drill.test.FixtureBuilder in project drill by apache.

the class TestValidationOptions method testDefaults.

/**
   * Should do no validation with all-default options.
   *
   * @throws Exception
   */
@Test
public void testDefaults() throws Exception {
    FixtureBuilder builder = ClusterFixture.builder().maxParallelization(1);
    try (ClusterFixture cluster = builder.build();
        ClientFixture client = cluster.clientFixture()) {
        boolean hasAssertions = false;
        assert hasAssertions = true;
        assertFalse(hasAssertions);
        String sql = "SELECT id_i, name_s10 FROM `mock`.`customers_10`";
        client.queryBuilder().sql(sql).run();
    }
}
Also used : ClusterFixture(org.apache.drill.test.ClusterFixture) FixtureBuilder(org.apache.drill.test.FixtureBuilder) ClientFixture(org.apache.drill.test.ClientFixture) Test(org.junit.Test) DrillTest(org.apache.drill.test.DrillTest)

Aggregations

FixtureBuilder (org.apache.drill.test.FixtureBuilder)6 ClientFixture (org.apache.drill.test.ClientFixture)5 ClusterFixture (org.apache.drill.test.ClusterFixture)5 DrillTest (org.apache.drill.test.DrillTest)3 Test (org.junit.Test)3 QueryDataBatch (org.apache.drill.exec.rpc.user.QueryDataBatch)2 SchemaPath (org.apache.drill.common.expression.SchemaPath)1 RecordBatchLoader (org.apache.drill.exec.record.RecordBatchLoader)1 BigIntVector (org.apache.drill.exec.vector.BigIntVector)1 BeforeClass (org.junit.BeforeClass)1