Skip to content

Commit

Permalink
fix failed uts
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li committed Jul 11, 2024
1 parent 67af9ca commit 15d1a5d
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,13 @@ case class ArrayJoinValidator() extends FunctionValidator {

case class PercentileValidator() extends FunctionValidator {
override def doValidate(expr: Expression): Boolean = {
// Currently clickhouse backend doesn't support quantileExact with frequency argument
// unless frequencyExpression is literal
val freqExpr = expr.asInstanceOf[Percentile].frequencyExpression
if (!freqExpr.isInstanceOf[Literal]) {
return false
}

// Currently clickhouse backend doesn't support quantileExact with frequency argument
val freqLiteral = freqExpr.asInstanceOf[Literal]
if (freqLiteral.value.asInstanceOf[Int] != 1) {
return false
}

true
}
}
Expand Down

0 comments on commit 15d1a5d

Please sign in to comment.