hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-10706) Make vectorized_timestamp_funcs test more stable
Date Thu, 14 May 2015 06:33:59 GMT

    [ https://issues.apache.org/jira/browse/HIVE-10706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14543281#comment-14543281
] 

Alexander Pivovarov commented on HIVE-10706:
--------------------------------------------

depending on how big the number n is I use different options:
- for E9 and smaller I use round(n, 3)
- for E13 - round(n, 0)
- for E19 - n between x and y

> Make vectorized_timestamp_funcs test more stable
> ------------------------------------------------
>
>                 Key: HIVE-10706
>                 URL: https://issues.apache.org/jira/browse/HIVE-10706
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF, Vectorization
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>            Priority: Minor
>         Attachments: HIVE-10706.1.patch
>
>
> TestCliDriver.testCliDriver_vectorized_timestamp_funcs failed recently
> The problem is Double to Double numbers comparison without delta.
> {code}
> Running: diff -a /home/hiveptest/54.196.24.219-hiveptest-1/apache-github-source-source/itests/qtest/../../itests/qtest/target/qfile-results/clientpositive/vectorized_timestamp_funcs.q.out
/home/hiveptest/54.196.24.219-hiveptest-1/apache-github-source-source/itests/qtest/../../ql/src/test/results/clientpositive/vectorized_timestamp_funcs.q.out
> 729c729
> < 1123143.8570000003
> ---
> > 1123143.8569999998
> {code}
> I also noticed that last query results are different among TestCliDriver and TestSparkCliDriver
tests  (last line in vectorized_timestamp_funcs.q.out)
> {code}
> -- regular
> 2.8798560435897438E13	8.970772952794212E19	8.970772952794212E19	9.206845925236166E19
9.471416447815084E9	9.471416447815084E9	9.471416447815084E9	9.595231068211002E9
> -- spark
> 2.8798560435897438E13	8.970772952794214E19	8.970772952794214E19	9.206845925236167E19
9.471416447815086E9	9.471416447815086E9	9.471416447815086E9	9.595231068211004E9
> -- tez
> 2.8798560435897438E13	8.970772952794212E19	8.970772952794212E19	9.206845925236166E19
9.471416447815084E9	9.471416447815084E9	9.471416447815084E9	9.595231068211002E9
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message