Package org.apache.calcite.test
Class SqlToRelTestBase
java.lang.Object
org.apache.calcite.test.SqlToRelTestBase
SqlToRelTestBase is an abstract base for tests which involve conversion from
SQL to relational algebra.
SQL statements to be translated can use the schema defined in
MockCatalogReader
; note that this is slightly different from
Farrago's SALES schema. If you get a parser or validator error from your test
SQL, look down in the stack until you see "Caused by", which will usually
tell you the real error.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Custom implementation of Correlate for testing. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal SqlToRelFixture
fixture()
Creates the test fixture that determines the behavior of tests.final SqlToRelFixture
Creates a test context with a SQL query.
-
Field Details
-
NL
-
-
Constructor Details
-
SqlToRelTestBase
public SqlToRelTestBase()
-
-
Method Details
-
fixture
Creates the test fixture that determines the behavior of tests. Sub-classes that, say, test different parser implementations should override. -
sql
Creates a test context with a SQL query. Default catalog:MockCatalogReaderSimple.init()
. -
expr
-