Skip to content

Commit

Permalink
Ignore examples for Remainder
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Sep 25, 2019
1 parent f7caecd commit b722806
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -450,7 +450,7 @@ case class IntegralDivide(left: Expression, right: Expression) extends DivModLik
Examples:
> SELECT 2 _FUNC_ 1.8;
0.2
> SELECT _FUNC_(2, 1.8);
> SELECT MOD(2, 1.8);
0.2
""")
case class Remainder(left: Expression, right: Expression) extends DivModLike {
Expand Down
Expand Up @@ -122,7 +122,9 @@ class SQLQuerySuite extends QueryTest with SharedSparkSession {
// `CASE WHEN ... THEN ... WHEN ... THEN ... END`
"org.apache.spark.sql.catalyst.expressions.CaseWhen",
// _FUNC_ is replaced by `locate` but `locate(... IN ...)` is not supported
"org.apache.spark.sql.catalyst.expressions.StringLocate")
"org.apache.spark.sql.catalyst.expressions.StringLocate",
// _FUNC_ is replaced by `%` which causes a parsing error on `SELECT %(2, 1.8)`
"org.apache.spark.sql.catalyst.expressions.Remainder")
spark.sessionState.functionRegistry.listFunction().foreach { funcId =>
val info = spark.sessionState.catalog.lookupFunctionInfo(funcId)
val className = info.getClassName
Expand Down

0 comments on commit b722806

Please sign in to comment.