Package org.apache.drill.exec.store.mock


package org.apache.drill.exec.store.mock
Defines a mock data source which generates dummy test data for use in testing. The data source operates in two modes:
  • Classic: used in physical plans in many unit tests. The plan specifies a set of columns; data is generated by the vectors themselves based on two alternating values.
  • Enhanced: available for use in newer unit tests. Enhances the physical plan description to allow specifying a data generator class (for various types, data formats, etc.) Also provides a data storage engine framework to allow using mock tables in SQL queries.

Classic Mode

Create a scan operator that looks like the following (from /src/test/resources/functions/cast/two_way_implicit_cast.json, used in TestReverseImplicitCast):

    graph:[
        {