Package org.apache.calcite.test.catalog
package org.apache.calcite.test.catalog
Classes for testing Catalog.
-
ClassDescriptionMock implementation of
SqlValidatorCatalogReaderwhich returns tables "EMP", "DEPT", "BONUS", "SALGRADE" (same as Oracle's SCOTT schema).Column resolver.Mock implementation ofAbstractQueryableTablewith 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.AbstractPreparingTablewhich holdsViewTableand delegatesMockCatalogReader.MockTable.toRel(org.apache.calcite.plan.RelOptTable.ToRelContext)call to the view.Mock schema.Mock implementation ofPrepare.PreparingTable.Mock implementation ofPrepare.PreparingTablefor views.Mock implementation ofMockCatalogReader.MockTablethat 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.