public class StatementTest extends JdbcTestBase
JdbcTestBase.ModelAndSchema, JdbcTestBase.TestDataConnectionDrillTest.MemWatcherwatcherc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
StatementTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpStatement() |
static void |
tearDownStatement() |
void |
testClientTriggeredQueryTimeout()
Test setting timeout for a query that actually times out because of lack of timely client response
|
void |
testDefaultGetQueryTimeout()
Test for reading of default query timeout
|
void |
testInvalidSetQueryTimeout()
Test Invalid parameter by giving negative timeout
|
void |
testNonTriggeredQueryTimeout()
Test setting timeout that never gets triggered
|
void |
testServerTriggeredQueryTimeout()
Test setting timeout for a query that actually times out because of lack of timely server response
|
void |
testSetQueryTimeoutAsZero()
Test setting timeout that never gets triggered
|
void |
testValidSetQueryTimeout()
Test setting a valid timeout
|
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 setUpStatement()
throws SQLException
SQLExceptionpublic static void tearDownStatement()
throws SQLException
SQLExceptionpublic void testDefaultGetQueryTimeout()
throws SQLException
SQLExceptionpublic void testInvalidSetQueryTimeout()
throws SQLException
SQLExceptionpublic void testValidSetQueryTimeout()
throws SQLException
SQLExceptionpublic void testSetQueryTimeoutAsZero()
throws SQLException
SQLExceptionpublic void testClientTriggeredQueryTimeout()
throws Exception
Exceptionpublic void testServerTriggeredQueryTimeout()
throws Exception
Exceptionpublic void testNonTriggeredQueryTimeout()
throws SQLException
SQLExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.