Package org.apache.druid.sql.calcite.planner
package org.apache.druid.sql.calcite.planner
-
ClassDescriptionCalcite planner.The module responsible for provide bindings for the Calcite Planner.Utility functions for Calcite.Facade onto the (optional) Druid catalog.Catalog resolver for when the catalog is not available.Maps column names from the query to output names desired by the user, in the order desired by the user.Implementation of Calcite
SqlConformancefor Druid.Druid SQL planner.DruidRelFieldTrimmer is a subclass ofRelFieldTrimmerthat provides additional support for Druid specific RelNodes.A CalciteRexExecutorthat reduces Calcite expressions by evaluating them using Druid's own built-in expressions.Druid extended SQL validator.LikeParser.parse(java.lang.String, org.apache.druid.math.expr.ExprMacroTable), but allows caching viaExpressionParserImpl.Member ofPlannerToolboxthat caches the result ofParser.parse(java.lang.String, org.apache.druid.math.expr.ExprMacroTable).Handler for the INSERT statement.Handler for the REPLACE statement.Represents an offset and a limit.Builder forPlannerConfig, primarily for use in tests to allow setting options programmatically rather than from the command line or a properties file.LikePlannerConfig, but that has static configuration and this class contains dynamic, per-query configuration.Deprecated.CachesLookupExtractorwithin aPlannerContext.The result of planning an SQL query withDruidPlannercan be run to produce query result, and also includes the output row type signature.After preparing an SQL query withDruidPlanner, the artifacts produced are the output signature of the result row, and type information for any dynamic parameters which must be bound before planning the query.Abstract base class for handlers that revolve around queries: SELECT, INSERT and REPLACE.Utility class for queriesTraverseRelNodetree and replaces allRexDynamicParamwithRexLiteralusingRexBuilderif a value binding exists for the parameter.Replaces allSqlDynamicParamencountered in anSqlNodetree with aSqlLiteralif a value binding exists for the parameter, if possible.Walks anSqlNodeto collect a set ofResourceforResourceType.DATASOURCEandResourceType.VIEWto use for authorization during query planning.Handler for a SQL statement.Context available to statement handlers.