Class RelSuggesterFixture

java.lang.Object
org.apache.calcite.test.RelSuggesterFixture

public class RelSuggesterFixture extends Object
A fixture for testing implementations of the RelCommonExpressionSuggester API.
  • Method Details

    • of

      public static RelSuggesterFixture of(Class<?> clazz, RelCommonExpressionSuggester suggester)
      Creates the default fixture for a given test class and suggester implementation.
    • withSql

      public RelSuggesterFixture withSql(String sql)
      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.