Package org.apache.calcite.test
Class RelSuggesterFixture
java.lang.Object
org.apache.calcite.test.RelSuggesterFixture
A fixture for testing implementations of the
RelCommonExpressionSuggester API.-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks that the actual and reference file are consistent.voidChecks that the suggester returns the expected plans for the specified SQL statement.static RelSuggesterFixtureof(Class<?> clazz, RelCommonExpressionSuggester suggester) Creates the default fixture for a given test class and suggester implementation.Creates a copy of this fixture that uses a given SQL query.
-
Method Details
-
of
Creates the default fixture for a given test class and suggester implementation. -
withSql
Creates a copy of this fixture that uses a given SQL query. -
checkSuggestions
public void checkSuggestions()Checks that the suggester returns the expected plans for the specified SQL statement.The expected suggestions are defined in a reference file handled by the provided DiffRepository.
-
checkActualAndReferenceFiles
public void checkActualAndReferenceFiles()Checks that the actual and reference file are consistent.
-