Classes for testing Calcite.
ClassDescriptionAbstract base class for implementations of
ModifiableTable.Abstract base class for implementations of
ModifiableView.Fluid DSL for testing Calcite connections and queries.Fluent interface for building a metadata query to be tested.Fluent interface for building a query to be tested.Result of calling
CalciteAssert.that().Connection configuration.Connection post-processor.Information necessary to create a JDBC connection.We want a consumer that can throw SqlException.Specification for common test schemas.Utilities for
CalciteAssert.ConnectionPostProcessor.Creates JDBC connections for tests.Information necessary to create a JDBC connection.A collection of resources used by tests.Callback to filter strings before returning them.DiffTestCase is an abstract base for JUnit tests which produce multi-line output to be verified by diffing against a pre-existing reference file.Fluent test fixtures for typical Calcite tests (parser, validator, sql-to-rel and rel-rules) that can easily be used in dependent projects.Test cases for intervals.Fluent interface for binding an expression to create a fixture that can be used to validate, check AST, or check type.Fluent interface to validate an expression.Matchers for testing SQL queries.Matchers.IsWithin<T extends Number>Matcher that tests whether the numeric value is within a given difference another value.Executes the few DDL commands.MockRelOptPlanner is a mock implementation of the
RelOptPlannerinterface.Mock operator table for testing purposes.Another bad table function: declares itself as a table function but does not return CURSOR."COMPOSITE" user-defined scalar function."DEDUP" user-defined table function."DYNTYPE" user-defined table function.Invalid user-defined table function with multiple input tables with row semantics."MAP" user-defined function."MYAGGFUNC" user-defined aggregate function."MYAGG" user-defined aggregate function."MYFUN" user-defined scalar function.Not valid as a table function, even though it returns CURSOR, because it does not implement
SqlTableFunction."RAMP" user-defined table function."ROW_FUNC" user-defined table function whose return type is row type with nullable and non-nullable fields."Score" user-defined table function.Similarity performs an analysis on two data sets, which are both tables of two columns, treated as the x and y axes of a graph."SPLIT" user-defined function."STRUCTURED_FUNC" user-defined function whose return type is structured type."TopN" user-defined table function.Test that runs every Quidem file as a test.Quidem connection factory for Calcite's built-in test schemas.Parameters for a Metadata test.A configuration that describes how metadata should be configured.A fixture for testing planner rules.Fixtures for verifying
RexImplicationChecker.Contains all the nourishment a test case could possibly need.Contains unit tests for all operators.Type system whose constructor reads from a thread-local.Implementation of
SqlTesterbased on a JDBC connection.Parameters for a SQL-to-RelNode test.SqlToRelTestBase is an abstract base for tests which involve conversion from SQL to relational algebra.Custom implementation of Correlate for testing.A fixture for testing the SQL validator.An abstract base class for implementing tests against
SqlValidator.Contains methods that call JDK methods that the forbidden APIs checker does not approve of.