public class PreparedStatementMaxRowsTest extends JdbcTestBase
JdbcTestBase.ModelAndSchema, JdbcTestBase.TestDataConnection
DrillTest.MemWatcher
watcher
c, dirTestWatcher, optionManager
logOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT
Constructor and Description |
---|
PreparedStatementMaxRowsTest() |
Modifier and Type | Method and Description |
---|---|
void |
getExclusiveLock() |
void |
releaseExclusiveLock() |
static void |
setUpConnection() |
static void |
tearDownConnection() |
void |
testDefaultGetMaxRows()
Test for reading of default max rows
|
void |
testInvalidSetMaxRows()
Test Invalid parameter by giving negative maxRows value
|
void |
testSetMaxRowsAsZero()
Test setting maxSize as zero (i.e.
|
void |
testSetMaxRowsHigherThanQueryLimit()
Test setting maxSize at a value higher than existing query limit
|
void |
testSetMaxRowsHigherThanSystemLimit()
Test setting maxSize at a value higher than existing SYSTEM limit
|
void |
testSetMaxRowsLowerThanQueryLimit()
Test setting maxSize at a value lower than existing query limit
|
void |
testSetMaxRowsLowerThanSystemLimit()
Test setting maxSize at a value lower than existing SYSTEM limit
|
void |
testValidSetMaxRows()
Test setting a valid maxRows value
|
changeSchema, changeSchemaIfSupplied, connect, connect, connect, getDefaultProperties, reset, setUpTestCase, tearDownTestCase, testJdbcTestConnectionResettingCompatibility, toString, toString, withFull, withModel, withNoDefaultSchema
clear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManager
escapeJsonString, finishDrillTest, initDrillTest
public static void setUpConnection() throws SQLException
SQLException
public static void tearDownConnection() throws SQLException
SQLException
public void getExclusiveLock()
public void releaseExclusiveLock()
public void testDefaultGetMaxRows() throws SQLException
SQLException
public void testInvalidSetMaxRows() throws SQLException
SQLException
public void testValidSetMaxRows() throws SQLException
SQLException
public void testSetMaxRowsAsZero() throws SQLException
SQLException
public void testSetMaxRowsLowerThanQueryLimit() throws SQLException
SQLException
public void testSetMaxRowsHigherThanQueryLimit() throws SQLException
SQLException
public void testSetMaxRowsLowerThanSystemLimit() throws SQLException
SQLException
public void testSetMaxRowsHigherThanSystemLimit() throws SQLException
SQLException
Copyright © 2021 The Apache Software Foundation. All rights reserved.