use of org.apache.drill.test.ClusterFixture in project drill by apache.
the class TestSimpleExternalSort method sortOneKeyDescendingExternalSort.
private void sortOneKeyDescendingExternalSort(boolean testLegacy) throws Throwable {
FixtureBuilder builder = ClusterFixture.builder().configProperty(ExecConstants.EXTERNAL_SORT_SPILL_THRESHOLD, 4).configProperty(ExecConstants.EXTERNAL_SORT_SPILL_GROUP_SIZE, 4);
try (ClusterFixture cluster = builder.build();
ClientFixture client = cluster.clientFixture()) {
chooseImpl(client, testLegacy);
List<QueryDataBatch> results = client.queryBuilder().physicalResource("/xsort/one_key_sort_descending.json").results();
assertEquals(1000000, client.countResults(results));
validateResults(client.allocator(), results);
}
}
use of org.apache.drill.test.ClusterFixture 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();
}
}
Aggregations