Package org.apache.calcite.test
Class SqlValidatorTestCase
java.lang.Object
org.apache.calcite.test.SqlValidatorTestCase
An abstract base class for implementing tests against
SqlValidator
.
A derived class can refine this test in two ways. First, it can add
testXxx()
methods, to test more functionality.
Second, it can override the fixture()
method to return a
different implementation of the SqlValidatorFixture
object. This
encapsulates the differences between test environments, for example, which
SQL parser or validator to use.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal SqlValidatorFixture
Creates a test context with a SQL expression.fixture()
Creates a test fixture.final SqlValidatorFixture
Creates a test context with a SQL query.final SqlValidatorFixture
Creates a test context with a SQL expression.final SqlValidatorFixture
final SqlValidatorFixture
-
Field Details
-
FIXTURE
-
-
Constructor Details
-
SqlValidatorTestCase
public SqlValidatorTestCase()Creates a test case.
-
-
Method Details
-
fixture
Creates a test fixture. Derived classes can override this method to run the same set of tests in a different testing environment. -
sql
Creates a test context with a SQL query. Default catalog:MockCatalogReaderSimple.init()
. -
expr
Creates a test context with a SQL expression. -
wholeExpr
Creates a test context with a SQL expression. If an error occurs, the error is expected to span the entire expression. -
winSql
-
win
-
winExp
-
winExp2
-