public class TestRestJson extends ClusterTest
Ad-hoc tests can be run by setting a breakpoint in one of the tests, then run the test in the debugger to start the REST server. Use your favorite browser-based tool:
{"query": "SELECT * FROM cp.`employee.json` LIMIT 20",
"queryType":"SQL"}DrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
static okhttp3.MediaType |
JSON_MEDIA_TYPE |
protected static File |
testDir |
static int |
TIMEOUT |
client, cluster, dirTestWatcherlogOutcome, objectMapper, REPEAT_RULE, thrownException| Constructor and Description |
|---|
TestRestJson() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setup() |
void |
testFailedQuery() |
void |
testGroupby() |
void |
testLargeQuery() |
void |
testNoLimit() |
void |
testQueryWithException() |
void |
testQueryWithVerboseException() |
void |
testSmallQuery() |
getFile, queryBuilder, run, runAndLog, runAndPrint, runAndPrint, shutdown, startCluster, testBuilderescapeJsonString, finishDrillTest, initDrillTestpublic static final okhttp3.MediaType JSON_MEDIA_TYPE
public static final int TIMEOUT
protected static File testDir
public void testSmallQuery()
throws IOException
IOExceptionpublic void testGroupby()
throws IOException
IOExceptionpublic void testNoLimit()
throws IOException
IOExceptionpublic void testFailedQuery()
throws IOException
IOExceptionpublic void testQueryWithException()
throws IOException
IOExceptionpublic void testQueryWithVerboseException()
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.