public class JdbcDataTest extends JdbcTestBase
JdbcTestBase.ModelAndSchema, JdbcTestBase.TestDataConnectionDrillTest.MemWatcherwatcherc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
JdbcDataTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Command-line utility to execute a logical plan.
|
static void |
setupFixtures() |
void |
testConnect()
Load driver and make a connection.
|
void |
testFilterConstant() |
void |
testFilterConstantFalse()
Query with filter.
|
void |
testFoodMart()
Tests that one of the FoodMart tables is present.
|
void |
testFullJoin() |
void |
testJoin() |
void |
testJoinOnSubquery()
Join on subquery; also tests that if a field of the same name exists in both inputs, both fields make it through
the join.
|
void |
testLeftJoin() |
void |
testLimit() |
void |
testLimitOrderBy() |
void |
testLoadDriver()
Load driver.
|
void |
testLoadDriverServiceLoader()
Load the driver using ServiceLoader
|
void |
testOrderBy() |
void |
testOrderByDesc() |
void |
testOrderByDescNullsFirst() |
void |
testOrderByDescNullsLast() |
void |
testOrderByWithOffset() |
void |
testOrderByWithOffsetAndFetch() |
void |
testPrepare()
Load driver, make a connection, prepare a statement.
|
void |
testProject()
Query that projects an element from the map.
|
void |
testProjectConstant()
Query with project list.
|
void |
testProjectFilterSubquery()
Query with subquery, filter, and projection of one real and one nonexistent field from a map field.
|
void |
testProjectFilterSubqueryPlan() |
void |
testProjectNestedFieldSugared()
Query that projects one field.
|
void |
testProjectOnSubquery()
Same logic as
testProject(), but using a subquery. |
void |
testProjectPlan()
Checks the logical plan.
|
void |
testRightJoin()
Right join is tricky because Drill's "join" operator only supports "left", so we have to flip inputs.
|
void |
testSelectDept()
Simple query against EMP table in HR database.
|
void |
testSelectEmployees()
Simple query against EMP table in HR database.
|
void |
testSelectEmpView()
Simple query against EMP table in HR database.
|
void |
testSelectJson()
Simple query against JSON.
|
void |
testUnion() |
void |
testUnionAll() |
void |
testValues() |
changeSchema, changeSchemaIfSupplied, connect, connect, connect, getDefaultProperties, reset, setUpTestCase, tearDownTestCase, testJdbcTestConnectionResettingCompatibility, toString, toString, withFull, withModel, withNoDefaultSchemaclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestpublic static void setupFixtures()
throws IOException
IOExceptionpublic static void main(String[] args) throws Exception
The forwarding method ensures that the IDE calls this method with the right classpath.
Exceptionpublic void testLoadDriver()
throws ClassNotFoundException
ClassNotFoundExceptionpublic void testLoadDriverServiceLoader()
public void testConnect()
throws Exception
Exceptionpublic void testPrepare()
throws Exception
Exceptionpublic void testSelectJson()
throws Exception
Exceptionpublic void testSelectEmployees()
throws Exception
Exceptionpublic void testSelectEmpView()
throws Exception
Exceptionpublic void testSelectDept()
throws Exception
Exceptionpublic void testProjectConstant()
throws Exception
Exceptionpublic void testProject()
throws Exception
Exceptionpublic void testProjectOnSubquery()
throws Exception
testProject(), but using a subquery.Exceptionpublic void testProjectPlan()
throws Exception
Exceptionpublic void testProjectFilterSubquery()
throws Exception
Exceptionpublic void testProjectFilterSubqueryPlan()
throws Exception
Exceptionpublic void testProjectNestedFieldSugared()
throws Exception
Exceptionpublic void testFilterConstantFalse()
throws Exception
Exceptionpublic void testRightJoin()
throws Exception
Exceptionpublic void testJoinOnSubquery()
throws Exception
Exceptionpublic void testFoodMart()
throws Exception
Exceptionpublic void testOrderByDescNullsFirst()
throws Exception
ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.