Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce RawThetaSketchAggregationFunction #5970

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

Jackie-Jiang
Copy link
Contributor

@Jackie-Jiang Jackie-Jiang commented Sep 3, 2020

Description

Introduce RawThetaSketchAggregationFunction which collects the values for a given expression (can be single-valued or multi-valued) into a Sketch object, and returns the sketch as a base64 encoded string. It treats BYTES expression as serialized sketches.
It takes an optional second argument as the parameters for the function, e.g. RAW_THETA_SKETCH(col, 'nominalEntries=8192').

@@ -43,6 +43,7 @@
PERCENTILE("percentile"),
PERCENTILEEST("percentileEst"),
PERCENTILETDIGEST("percentileTDigest"),
THETASKETCH("thetaSketch"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we call it THETHASKETCHRAW

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, changed to rawThetaSketch

@Jackie-Jiang Jackie-Jiang changed the title Introduce ThetaSketchAggregationFunciton Introduce RawThetaSketchAggregationFunciton Sep 3, 2020
@Jackie-Jiang Jackie-Jiang merged commit a21ec8a into apache:master Sep 3, 2020
@Jackie-Jiang Jackie-Jiang deleted the raw_theta_sketch branch September 3, 2020 22:33
@Jackie-Jiang Jackie-Jiang changed the title Introduce RawThetaSketchAggregationFunciton Introduce RawThetaSketchAggregationFunction Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants