Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions docs/velox-backend-aggregate-function-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Aggregate Functions Support Status

**Out of 62 aggregate functions in Spark 3.5, Gluten currently fully supports 54 functions and partially supports 1 function.**

## Aggregate Functions

| Spark Functions | Spark Expressions | Status | Restrictions |
|-----------------------|------------------------------------|----------|----------------|
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it looks like the ANSI flag and the detail datatype support are missed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can't generate the datatype support list from parsing the log from unit tests, as they don't cover all function signatures. We can improve this by running expression fuzzer test in Gluten.

| any | BoolOr | S | |
| any_value | AnyValue | S | |
| approx_count_distinct | HyperLogLogPlusPlus | S | |
| approx_percentile | ApproximatePercentile | S | |
| array_agg | CollectList | S | |
| avg | Average | S | |
| bit_and | BitAndAgg | S | |
| bit_or | BitOrAgg | S | |
| bit_xor | BitXorAgg | S | |
| bitmap_construct_agg | BitmapConstructAgg | | |
| bitmap_or_agg | BitmapOrAgg | | |
| bool_and | BoolAnd | S | |
| bool_or | BoolOr | S | |
| collect_list | CollectList | S | |
| collect_set | CollectSet | S | |
| corr | Corr | S | |
| count | Count | S | |
| count_if | CountIf | S | |
| count_min_sketch | CountMinSketchAggExpressionBuilder | | |
| covar_pop | CovPopulation | S | |
| covar_samp | CovSample | S | |
| every | BoolAnd | S | |
| first | First | S | |
| first_value | First | S | |
| grouping | Grouping | S | |
| grouping_id | GroupingID | S | |
| histogram_numeric | HistogramNumeric | | |
| hll_sketch_agg | HllSketchAgg | | |
| hll_union_agg | HllUnionAgg | | |
| kurtosis | Kurtosis | S | |
| last | Last | S | |
| last_value | Last | S | |
| max | Max | S | |
| max_by | MaxBy | S | |
| mean | Average | S | |
| median | Median | S | |
| min | Min | S | |
| min_by | MinBy | S | |
| mode | Mode | | |
| percentile | Percentile | S | |
| percentile_approx | ApproximatePercentile | S | |
| regr_avgx | RegrAvgX | S | |
| regr_avgy | RegrAvgY | S | |
| regr_count | RegrCount | S | |
| regr_intercept | RegrIntercept | S | |
| regr_r2 | RegrR2 | S | |
| regr_slope | RegrSlope | S | |
| regr_sxx | RegrSXX | S | |
| regr_sxy | RegrSXY | S | |
| regr_syy | RegrSYY | S | |
| skewness | Skewness | S | |
| some | BoolOr | S | |
| std | StddevSamp | S | |
| stddev | StddevSamp | S | |
| stddev_pop | StddevPop | S | |
| stddev_samp | StddevSamp | S | |
| sum | Sum | S | |
| try_avg | TryAverageExpressionBuilder | S | |
| try_sum | TrySumExpressionBuilder | PS | |
| var_pop | VariancePop | S | |
| var_samp | VarianceSamp | S | |
| variance | VarianceSamp | S | |

16 changes: 16 additions & 0 deletions docs/velox-backend-generator-function-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generator Functions Support Status

**Out of 7 generator functions in Spark 3.5, Gluten currently fully supports 4 functions.**

## Generator Functions

| Spark Functions | Spark Expressions | Status | Restrictions |
|-------------------|--------------------------|----------|----------------|
| explode | ExplodeExpressionBuilder | S | |
| explode_outer | ExplodeExpressionBuilder | | |
| inline | Inline | S | |
| inline_outer | Inline | | |
| posexplode | PosExplode | S | |
| posexplode_outer | PosExplode | | |
| stack | Stack | S | |

Loading
Loading