This is an automated email from the ASF dual-hosted git repository.
joemcdonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
The following commit(s) were added to refs/heads/master by this push:
new 970272495 IMPALA-12798: Tolerate floationg point precision for
regr_intercept() TIMESTAMP test
970272495 is described below
commit 9702724959b5ac7d9f7796197c89049b6d39653e
Author: pranavyl <[email protected]>
AuthorDate: Tue Feb 20 08:53:13 2024 +0800
IMPALA-12798: Tolerate floationg point precision for regr_intercept()
TIMESTAMP test
The patch focuses on making sure that the regr_intercept() tests are
uniform across different systems by adding tolerance for floating
point precision.
Change-Id: I937dec4cdf9557c9af7734c8793f0aa6e8d29889
Reviewed-on: http://gerrit.cloudera.org:8080/21117
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
testdata/workloads/functional-query/queries/QueryTest/aggregation.test | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/testdata/workloads/functional-query/queries/QueryTest/aggregation.test
b/testdata/workloads/functional-query/queries/QueryTest/aggregation.test
index 39c4d7d75..cb20e8c6d 100644
--- a/testdata/workloads/functional-query/queries/QueryTest/aggregation.test
+++ b/testdata/workloads/functional-query/queries/QueryTest/aggregation.test
@@ -2078,7 +2078,8 @@ double, double, double, double, double, double, double
# regr_intercept() on different datatypes
select regr_intercept(tinyint_col, tinyint_col), regr_intercept(smallint_col,
smallint_col),
regr_intercept(int_col, int_col), regr_intercept(bigint_col, bigint_col),
regr_intercept(float_col, float_col),
- regr_intercept(double_col, double_col), regr_intercept(timestamp_col,
timestamp_col) from functional.alltypes;
+ regr_intercept(double_col, double_col), round(regr_intercept(timestamp_col,
timestamp_col), 5) from
+ functional.alltypes;
---- RESULTS
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
---- TYPES