wayneguow commented on PR #47414:
URL: https://github.com/apache/spark/pull/47414#issuecomment-2238837740

   > ```
   > [info] - scan with filter push-down *** FAILED *** (10 seconds, 332 
milliseconds)
   > [info]   org.apache.spark.SparkException: Job aborted due to stage 
failure: Task 0 in stage 216.0 failed 1 times, most recent failure: Lost task 
0.0 in stage 216.0 (TID 200) (localhost executor driver): 
org.h2.jdbc.JdbcSQLDataException: Invalid value "1200.0" for parameter "ASIN() 
argument"; SQL statement:
   > [info] SELECT "DEPT","NAME","SALARY","BONUS","IS_MANAGER" FROM 
"test"."employee"  WHERE ("BONUS" IS NOT NULL) AND (SIN("BONUS") < -0.08) AND 
(SINH("BONUS") > 200.0) AND (COS("BONUS") > 0.9) AND (COSH("BONUS") > 200.0) 
AND (TAN("BONUS") < -0.08) AND (TANH("BONUS") = 1.0) AND (COT("BONUS") < -11.0) 
AND (ASIN("BONUS") > 0.1) AND (ACOS("BONUS") > 1.4) AND (ATAN("BONUS") > 1.4) 
AND ((ATAN2("BONUS", "BONUS")) > 0.7) [90008-230]
   > [info]     at 
org.h2.message.DbException.getJdbcSQLException(DbException.java:658)
   > [info]     at 
org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
   > [info]     at org.h2.message.DbException.get(DbException.java:223)
   > [info]     at 
org.h2.message.DbException.getInvalidValueException(DbException.java:298)
   > [info]     at 
org.h2.expression.function.MathFunction1.getValue(MathFunction1.java:160)
   > [info]     at 
org.h2.expression.condition.Comparison.getValue(Comparison.java:225)
   > [info]     at 
org.h2.expression.condition.ConditionAndOrN.getValue(ConditionAndOrN.java:128)
   > [info]     at 
org.h2.expression.Expression.getBooleanValue(Expression.java:343)
   > [info]     at org.h2.command.query.Select.isConditionMet(Select.java:452)
   > [info]     at 
org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1889)
   > [info]     at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
   > [info]     at org.h2.result.FetchedResult.next(FetchedResult.java:34)
   > [info]     at org.h2.command.query.Select.queryFlat(Select.java:767)
   > [info]     at 
org.h2.command.query.Select.queryWithoutCache(Select.java:891)
   > [info]     at 
org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:211)
   > [info]     at org.h2.command.query.Query.query(Query.java:534)
   > [info]     at org.h2.command.query.Query.query(Query.java:497)
   > ```
   > 
   > the failed test seems related to this pr.
   
   Yes. After this commit( 
https://github.com/h2database/h2database/commit/186647d4a35d05681febf4f53502b306aa6d511a),
 the behavior of `asin` and `acos` has changed in `h2`, complying with Standard 
SQL, and throwing exceptions directly when the argument is invalid(< -1d ||  > 
1d).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to