Package org.apache.calcite.test.catalog
package org.apache.calcite.test.catalog
Classes for testing Catalog.
-
ClassDescriptionMock implementation of
SqlValidatorCatalogReader
which returns tables "EMP", "DEPT", "BONUS", "SALGRADE" (same as Oracle's SCOTT schema).Column resolver.Mock implementation ofAbstractQueryableTable
with dynamic record type.Alternative to MockViewTable that exercises code paths in ModifiableViewTable and ModifiableViewTableInitializerExpressionFactory.A mock of ModifiableViewTable that can unwrap a mock RelOptTable.A TableMacro that creates mock ModifiableViewTable.Mock implementation ofPrepare.AbstractPreparingTable
which holdsViewTable
and delegatesMockCatalogReader.MockTable.toRel(org.apache.calcite.plan.RelOptTable.ToRelContext)
call to the view.Mock schema.Mock implementation ofPrepare.PreparingTable
.Mock implementation ofPrepare.PreparingTable
for views.Mock implementation ofMockCatalogReader.MockTable
that supports must-filter fields.Registers dynamic tables.Adds some extra tables to the mock catalog.Simple catalog reader for testing.Mock catalog reader that tags a few columns in the tables as must-filter.Define column strategies for the "VIRTUALCOLUMNS" table.