public abstract static class HiveRewriteToDataSketchesRules.AbstractRankBasedRewriteRule
extends org.apache.calcite.plan.RelOptRule
SELECT id, CUME_DIST() OVER (ORDER BY id) FROM sketch_input;
⇒ SELECT id, ds_kll_cdf(ds, CAST(id AS FLOAT) )[0]
FROM sketch_input JOIN (
SELECT ds_kll_sketch(CAST(id AS FLOAT)) AS ds FROM sketch_input
) q;
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HiveRewriteToDataSketchesRules.AbstractRankBasedRewriteRule.AbstractRankBasedRewriteBuilder |
| Constructor and Description |
|---|
AbstractRankBasedRewriteRule(String sketchType,
String description) |
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unorderedCopyright © 2024 The Apache Software Foundation. All rights reserved.