Class ConvertMetadataAggregateToDirectScanRule
java.lang.Object
org.apache.calcite.plan.RelOptRule
org.apache.drill.exec.planner.logical.ConvertMetadataAggregateToDirectScanRule
public class ConvertMetadataAggregateToDirectScanRule
extends org.apache.calcite.plan.RelOptRule
Rule which converts
MetadataAggRel(metadataLevel=ROW_GROUP) \ DrillScanRel
plan into
DrillDirectScanRelwhere
DrillDirectScanRel
is populated with row group metadata.
For the case when aggregate level is not ROW_GROUP, resulting plan will be the following:
MetadataAggRel(metadataLevel=FILE (or another non-ROW_GROUP value), createNewAggregations=false) \ DrillDirectScanRel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.plan.RelOptRule
org.apache.calcite.plan.RelOptRule.ConverterRelOptRuleOperand
-
Field Summary
FieldsFields inherited from class org.apache.calcite.plan.RelOptRule
description, operands, relBuilderFactory
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.calcite.plan.RelOptRule
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unordered
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ConvertMetadataAggregateToDirectScanRule
public ConvertMetadataAggregateToDirectScanRule()
-
-
Method Details
-
onMatch
public void onMatch(org.apache.calcite.plan.RelOptRuleCall call) - Specified by:
onMatch
in classorg.apache.calcite.plan.RelOptRule
-