[Feature](vec)(quantile_state): support quantile state in vectorized engine (#16562)

* [Feature](vectorized)(quantile_state): support vectorized quantile state functions
1. now quantile column only support not nullable
2. add up some regression test cases
3. set default enable_quantile_state_type = true
---------

Co-authored-by: spaces-x <weixiang06@meituan.com>
This commit is contained in:
spaces-x
2023-03-14 10:54:04 +08:00
committed by GitHub
parent 36a0d40ac3
commit 5b39fa9843
39 changed files with 1119 additions and 23 deletions

View File

@ -638,6 +638,9 @@ public class CreateFunctionStmt extends DdlStmt {
case BITMAP:
typeBuilder.setId(Types.PGenericType.TypeId.BITMAP);
break;
case QUANTILE_STATE:
typeBuilder.setId(Types.PGenericType.TypeId.QUANTILE_STATE);
break;
case DATE:
typeBuilder.setId(Types.PGenericType.TypeId.DATE);
break;

View File

@ -872,7 +872,6 @@ public class FunctionCallExpr extends Expr {
if (!getChild(1).isConstant()) {
throw new AnalysisException(fnName + "function's second argument should be constant");
}
throw new AnalysisException(fnName + "not support on vectorized engine now.");
}
if ((fnName.getFunction().equalsIgnoreCase("HLL_UNION_AGG")