-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[multistage] support the rest of the agg functions currently implementable #11208
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11208 +/- ##
==========================================
- Coverage 0.11% 0.00% -0.12%
==========================================
Files 2229 2213 -16
Lines 119803 119390 -413
Branches 18126 18071 -55
==========================================
- Hits 137 0 -137
+ Misses 119646 119390 -256
+ Partials 20 0 -20
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 16 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/AggregationFunctionType.java
Show resolved
Hide resolved
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/AggregationFunctionType.java
Show resolved
Hide resolved
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/AggregationFunctionType.java
Outdated
Show resolved
Hide resolved
@@ -46,13 +46,13 @@ public static String literalMapToHintString(Map<Pair<Integer, Integer>, RexExpre | |||
e.getValue().getDataType().name(), e.getValue().getValue())); | |||
} | |||
// semi-colon is used to separate between encoded literals | |||
return "{" + StringUtils.join(literalStrings, ";") + "}"; | |||
return "{" + StringUtils.join(literalStrings, ";:;") + "}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this ;:;
used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem is b/c in some agg literals it allows stringify parameter type with ;
as the separator. this conflicts with my usage of ;
which indicates the "next literal hint".
Thus i used another 3-character splitter ;:;
to indicate hint-literal boundaries.
8d77bd6
to
e04fc30
Compare
…he#11208) * support the rest of the agg functions * support others trivial ones such as DISTINCT_SUM/AVG, MIN_MAX_RANGE, etc * add DISTINCT_COUNT variances * add PERCENTILE_* variances * added TODO comments for the rest of the functions --------- Co-authored-by: Rong Rong <rongr@startree.ai>
add all supported agg functions to follow up with #11034
the following can be added very soon (some complication due to testing)
distinctCountBitmap
is not yet supported, can be added later*TupleSketch
functions not yet supportedSTUnion
agg function*MV
variance of agg functions will be added in [multistage] Support multi-value aggregation functions #11216the following functions require some revisit
histogram
not yet supported due to complex ARRAY constructor_
version of the stats function such asCOVAR_POP
is not supported, (where ascoVarPop
is) due to calctie built-in operator table conflict.argmin/argmax
is not supported due to conflicting signature (e.g. arg column at 1st vs arg column at last convention differs between pinot and calcite)funnelCount
due to its complex syntax, there should be an easier solution in v2