public static class HiveRewriteToDataSketchesRules.PercentileDiscRewrite
extends org.apache.calcite.plan.RelOptRule
percentile_disc(0.2) within group (order by id).
SELECT PERCENTILE_DISC(0.2) WITHIN GROUP(ORDER BY ID) FROM sketch_input; ⇒ SELECT ds_kll_quantile(ds_kll_sketch(CAST(id AS FLOAT)), 0.2) FROM sketch_input;
| Constructor and Description |
|---|
PercentileDiscRewrite(String sketchType) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRewriteToDataSketchesRules.PercentileDiscRewrite.VBuilderPAP |
processCall(org.apache.calcite.plan.RelOptRuleCall call) |
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unorderedpublic PercentileDiscRewrite(String sketchType)
protected org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRewriteToDataSketchesRules.PercentileDiscRewrite.VBuilderPAP processCall(org.apache.calcite.plan.RelOptRuleCall call)
Copyright © 2022 The Apache Software Foundation. All rights reserved.