Package org.apache.calcite.test
Class SqlToRelFixture
java.lang.Object
org.apache.calcite.test.SqlToRelFixture
Parameters for a SQL-to-RelNode test.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convertsTo
(String plan) ensuring
(Predicate<SqlToRelFixture> predicate, UnaryOperator<SqlToRelFixture> remedy) Returns a fixture that meets a given condition, applying a remedy if it does not already.expression
(boolean expression) Sets whether this is an expression (as opposed to a whole query).void
ok()
void
toRel()
toRoot()
withCatalogReader
(SqlTestFactory.CatalogReaderFactory catalogReaderFactory) withConfig
(UnaryOperator<SqlToRelConverter.Config> transform) withConformance
(SqlConformance conformance) withDecorrelate
(boolean decorrelate) withDiffRepos
(DiffRepository diffRepos) withExpand
(boolean expand) withFactory
(UnaryOperator<SqlTestFactory> transform) withTrim
(boolean trim)
-
Field Details
-
TESTER
-
DEFAULT
-
-
Method Details
-
ok
public void ok() -
throws_
-
convertsTo
-
diffRepos
-
withSql
-
expression
Sets whether this is an expression (as opposed to a whole query). -
withConfig
-
withExpand
-
withDecorrelate
-
withFactory
-
withCatalogReader
-
withExtendedTester
-
withDynamicTable
-
withTrim
-
getConformance
-
withConformance
-
withDiffRepos
-
toRoot
-
toRel
-
ensuring
public SqlToRelFixture ensuring(Predicate<SqlToRelFixture> predicate, UnaryOperator<SqlToRelFixture> remedy) Returns a fixture that meets a given condition, applying a remedy if it does not already.
-