Package org.apache.calcite.test
package org.apache.calcite.test
Classes for testing Calcite.
-
ClassDescriptionAbstract base class for implementations of
ModifiableTable
.Abstract base class for implementations ofModifiableView
.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 callingCalciteAssert.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 forConnectionFactory
andCalciteAssert.ConnectionPostProcessor
.Creates JDBC connections for tests.Information necessary to create a JDBC connection.Custom implementations ofRelDataTypeSystem
for testing.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 theRelOptPlanner
interface.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 implementSqlTableFunction
."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.A ReflectiveSchema that does not return row count statistics.Parameters for a Metadata test.A configuration that describes how metadata should be configured.A fixture for testing planner rules.Fixtures for verifyingRexImplicationChecker
.Contains all the nourishment a test case could possibly need.Contains unit tests for all operators.Implementation ofSqlTester
based 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 againstSqlValidator
.Contains methods that call JDK methods that the forbidden APIs checker does not approve of.