Search in sources :

Example 1 with InformationSchema

use of io.druid.sql.calcite.schema.InformationSchema in project druid by druid-io.

the class Calcites method createRootSchema.

public static SchemaPlus createRootSchema(final Schema druidSchema) {
    final SchemaPlus rootSchema = CalciteSchema.createRootSchema(false, false).plus();
    rootSchema.add(DruidSchema.NAME, druidSchema);
    rootSchema.add(InformationSchema.NAME, new InformationSchema(rootSchema));
    return rootSchema;
}
Also used : SchemaPlus(org.apache.calcite.schema.SchemaPlus) InformationSchema(io.druid.sql.calcite.schema.InformationSchema)

Aggregations

InformationSchema (io.druid.sql.calcite.schema.InformationSchema)1 SchemaPlus (org.apache.calcite.schema.SchemaPlus)1