Search in sources :

Example 1 with MetadataHashAggPOP

use of org.apache.drill.exec.physical.config.MetadataHashAggPOP in project drill by apache.

the class MetadataHashAggBatch method createAggregatorInternal.

@Override
protected HashAggregator createAggregatorInternal() {
    MetadataHashAggPOP popConfig = (MetadataHashAggPOP) this.popConfig;
    valueExpressions = new MetadataAggregateHelper(popConfig.getContext(), new ColumnNamesOptions(context.getOptions()), incoming.getSchema(), popConfig.getPhase()).getValueExpressions();
    return super.createAggregatorInternal();
}
Also used : MetadataHashAggPOP(org.apache.drill.exec.physical.config.MetadataHashAggPOP) ColumnNamesOptions(org.apache.drill.exec.metastore.ColumnNamesOptions)

Example 2 with MetadataHashAggPOP

use of org.apache.drill.exec.physical.config.MetadataHashAggPOP in project drill by apache.

the class MetadataHashAggPrel method getPhysicalOperator.

@Override
public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException {
    Prel child = (Prel) this.getInput();
    MetadataHashAggPOP physicalOperator = new MetadataHashAggPOP(child.getPhysicalOperator(creator), context, phase);
    return creator.addMetadata(this, physicalOperator);
}
Also used : MetadataHashAggPOP(org.apache.drill.exec.physical.config.MetadataHashAggPOP)

Aggregations

MetadataHashAggPOP (org.apache.drill.exec.physical.config.MetadataHashAggPOP)2 ColumnNamesOptions (org.apache.drill.exec.metastore.ColumnNamesOptions)1