You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2023/06/18 08:31:00 UTC
[jira] [Comment Edited] (SPARK-40732) Double type precision problem
[ https://issues.apache.org/jira/browse/SPARK-40732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733879#comment-17733879 ]
Dongjoon Hyun edited comment on SPARK-40732 at 6/18/23 8:30 AM:
----------------------------------------------------------------
I confirmed that Java 21-ea also has the same issue.
{code}
$ java -version
openjdk version "21-ea" 2023-09-19
OpenJDK Runtime Environment (build 21-ea+27-2343)
OpenJDK 64-Bit Server VM (build 21-ea+27-2343, mixed mode, sharing)
{code}
was (Author: dongjoon):
I confirmed that Java 21-ea also has the same issue.
```
$ java -version
openjdk version "21-ea" 2023-09-19
OpenJDK Runtime Environment (build 21-ea+27-2343)
OpenJDK 64-Bit Server VM (build 21-ea+27-2343, mixed mode, sharing)
```
> Double type precision problem
> -----------------------------
>
> Key: SPARK-40732
> URL: https://issues.apache.org/jira/browse/SPARK-40732
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Yang Jie
> Priority: Major
>
> Some case in SQLQueryTestSuite(sql/core) and ThriftServerQueryTestSuite(sql/hive-thriftserver) failed for this reason:
> for example:
>
> {code:java}
> SQLQueryTestSuite-
> try_aggregates.sql *** FAILED ***
> try_aggregates.sql
> Expected "4.61168601842738[79]E18", but got "4.61168601842738[8]E18" Result did not match for query #20
> SELECT try_avg(col) FROM VALUES (9223372036854775807L), (1L) AS tab(col) (SQLQueryTestSuite.scala:495)
> {code}
> {code:java}
> ThriftServerQueryTestSuite- try_aggregates.sql *** FAILED ***
> Expected "4.61168601842738[79]E18", but got "4.61168601842738[8]E18" Result did not match for query #20
> SELECT try_avg(col) FROM VALUES (9223372036854775807L), (1L) AS tab(col) (ThriftServerQueryTestSuite.scala:222)- try_arithmetic.sql *** FAILED ***
> Expected "-4.65661287307739[26]E-10", but got "-4.65661287307739[3]E-10" Result did not match for query #26
> SELECT try_divide(1, (2147483647 + 1)) (ThriftServerQueryTestSuite.scala:222)- datetime-{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org