Skip to content

Commit

Permalink
fe part
Browse files Browse the repository at this point in the history
  • Loading branch information
Mryange committed Nov 11, 2024
1 parent 08ff692 commit 5e66a06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.doris.nereids.trees.expressions.functions.ExplicitlyCastableSignature;
import org.apache.doris.nereids.trees.expressions.visitor.ExpressionVisitor;
import org.apache.doris.nereids.types.DoubleType;
import org.apache.doris.nereids.types.FloatType;

import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
Expand All @@ -36,10 +37,9 @@ public class PercentileApprox extends NullableAggregateFunction
implements ExplicitlyCastableSignature {

public static final List<FunctionSignature> SIGNATURES = ImmutableList.of(
FunctionSignature.ret(DoubleType.INSTANCE).args(DoubleType.INSTANCE, DoubleType.INSTANCE),
FunctionSignature.ret(DoubleType.INSTANCE).args(FloatType.INSTANCE, FloatType.INSTANCE),
FunctionSignature.ret(DoubleType.INSTANCE)
.args(DoubleType.INSTANCE, DoubleType.INSTANCE, DoubleType.INSTANCE)
);
.args(FloatType.INSTANCE, FloatType.INSTANCE, FloatType.INSTANCE));

/**
* constructor with 2 arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.doris.nereids.trees.expressions.functions.ExplicitlyCastableSignature;
import org.apache.doris.nereids.trees.expressions.visitor.ExpressionVisitor;
import org.apache.doris.nereids.types.DoubleType;
import org.apache.doris.nereids.types.FloatType;

import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
Expand All @@ -38,10 +39,10 @@ public class PercentileApproxWeighted extends NullableAggregateFunction
public static final List<FunctionSignature> SIGNATURES = ImmutableList.of(

FunctionSignature.ret(DoubleType.INSTANCE)
.args(DoubleType.INSTANCE, DoubleType.INSTANCE, DoubleType.INSTANCE),
.args(FloatType.INSTANCE, FloatType.INSTANCE, FloatType.INSTANCE),

FunctionSignature.ret(DoubleType.INSTANCE)
.args(DoubleType.INSTANCE, DoubleType.INSTANCE, DoubleType.INSTANCE, DoubleType.INSTANCE));
.args(FloatType.INSTANCE, FloatType.INSTANCE, FloatType.INSTANCE, FloatType.INSTANCE));

/**
* constructor with 3 arguments.
Expand Down

0 comments on commit 5e66a06

Please sign in to comment.