[hive] branch branch-3 updated (55bcdb8c210 -> cd4e37e29d6)

2023-04-13 Thread vihangk1
This is an automated email from the ASF dual-hosted git repository.

vihangk1 pushed a change to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git


from 55bcdb8c210 HIVE-27250 : Backport of HIVE-22599 to branch-3 (Aman Raj 
reviewed by Vihang Karajgaonkar)
 add cd4e37e29d6  HIVE-27249: Backport HIVE-23619 to branch-3 (Aman Raj 
reviewed by Vihang Karajgaonkar)

No new revisions were added by this update.

Summary of changes:
 .../java/org/apache/hadoop/hive/conf/HiveConf.java |   5 +-
 .../TestReExecuteKilledTezAMQueryPlugin.java   | 185 +
 .../org/apache/hadoop/hive/ql/DriverFactory.java   |   4 +
 ...Plugin.java => ReExecuteLostAMQueryPlugin.java} |  62 +++
 4 files changed, 217 insertions(+), 39 deletions(-)
 create mode 100644 
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/reexec/TestReExecuteKilledTezAMQueryPlugin.java
 copy 
ql/src/java/org/apache/hadoop/hive/ql/reexec/{ReExecutionOverlayPlugin.java => 
ReExecuteLostAMQueryPlugin.java} (66%)



[hive] branch branch-3 updated (acca2b0ffeb -> 55bcdb8c210)

2023-04-13 Thread vihangk1
This is an automated email from the ASF dual-hosted git repository.

vihangk1 pushed a change to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git


from acca2b0ffeb HIVE-27256 : Backport HIVE-24020 to branch-3 (Aman Raj 
reviewed by Vihang Karajgaonkar)
 add 55bcdb8c210 HIVE-27250 : Backport of HIVE-22599 to branch-3 (Aman Raj 
reviewed by Vihang Karajgaonkar)

No new revisions were added by this update.

Summary of changes:
 .../java/org/apache/hadoop/hive/ql/cache/results/QueryResultsCache.java | 2 --
 1 file changed, 2 deletions(-)



[hive] branch branch-3 updated (8ed723cac8b -> acca2b0ffeb)

2023-04-13 Thread vihangk1
This is an automated email from the ASF dual-hosted git repository.

vihangk1 pushed a change to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git


from 8ed723cac8b HIVE-27220:  Backport Upgrade 
commons,httpclient,jackson,jetty,log4j binaries from branch-3.1 (Naveen Gangam, 
Apoorva Aggarwal, reviewed by Aman Raj)
 add acca2b0ffeb HIVE-27256 : Backport HIVE-24020 to branch-3 (Aman Raj 
reviewed by Vihang Karajgaonkar)

No new revisions were added by this update.

Summary of changes:
 .../hive/ql/txn/compactor/TestCompactor.java   | 122 +
 .../hive/streaming/AbstractRecordWriter.java   |  23 ++--
 2 files changed, 131 insertions(+), 14 deletions(-)



[hive] branch master updated (a029c5fd042 -> 4567681988a)

2023-04-13 Thread vihangk1
This is an automated email from the ASF dual-hosted git repository.

vihangk1 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


from a029c5fd042 HIVE-27145: Use StrictMath for remaining Math functions as 
followup of HIVE-23133 (Himanshu Mishra, reviewed by Krisztian Kasa, Syed 
Shameerur Rahman)
 add 4567681988a HIVE-27258: Remove usage of Splitter.splitToList in 
HiveMetaStoreClient HTTP client (Vihang Karajgaonkar, reviewed by Junlin Zeng, 
Zhihua Deng)

No new revisions were added by this update.

Summary of changes:
 .../java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java| 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)



[hive] branch master updated: HIVE-27145: Use StrictMath for remaining Math functions as followup of HIVE-23133 (Himanshu Mishra, reviewed by Krisztian Kasa, Syed Shameerur Rahman)

2023-04-13 Thread krisztiankasa
This is an automated email from the ASF dual-hosted git repository.

krisztiankasa pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
 new a029c5fd042 HIVE-27145: Use StrictMath for remaining Math functions as 
followup of HIVE-23133 (Himanshu Mishra, reviewed by Krisztian Kasa, Syed 
Shameerur Rahman)
a029c5fd042 is described below

commit a029c5fd04268bd3254a3db2d44b08299b4b4ffb
Author: Himanshu Mishra 
AuthorDate: Thu Apr 13 18:29:53 2023 +0530

HIVE-27145: Use StrictMath for remaining Math functions as followup of 
HIVE-23133 (Himanshu Mishra, reviewed by Krisztian Kasa, Syed Shameerur Rahman)

HIVE-23133 started using StrictMath for cos, exp, log UDFs to fix Q
Tests failing because results could vary based on hardware when
using Math library.

1. There are other Math functions that can have same impact of underlying
hardware namely, sin, tan, asin, acos, atan, sqrt, pow, cbrt. Using
StrictMath for these as well.
2. HIVE-23133 missed custom vector classes for Log, using StrictMath for 
those.
3. JDK-4477961 (in Java 9) changed radians and degrees calculation
leading to Q Test failures. Using round() to ensure tests pass on JDK 8
and later

Co-authored-by: Himanshu Mishra 
---
 .../expressions/FuncLogWithBaseDoubleToDouble.java |  2 +-
 .../expressions/FuncLogWithBaseLongToDouble.java   |  2 +-
 .../expressions/FuncPowerDoubleToDouble.java   |  2 +-
 .../vector/expressions/FuncPowerLongToDouble.java  |  2 +-
 .../org/apache/hadoop/hive/ql/udf/UDFAcos.java |  2 +-
 .../org/apache/hadoop/hive/ql/udf/UDFAsin.java |  2 +-
 .../org/apache/hadoop/hive/ql/udf/UDFAtan.java |  2 +-
 .../java/org/apache/hadoop/hive/ql/udf/UDFSin.java |  2 +-
 .../org/apache/hadoop/hive/ql/udf/UDFSqrt.java |  2 +-
 .../java/org/apache/hadoop/hive/ql/udf/UDFTan.java |  2 +-
 .../hadoop/hive/ql/udf/generic/GenericUDFCbrt.java |  2 +-
 .../hive/ql/udf/generic/GenericUDFPower.java   |  2 +-
 ql/src/test/queries/clientpositive/udf_radians.q   |  9 ++--
 .../clientpositive/vector_decimal_math_funcs.q |  8 +--
 .../queries/clientpositive/vector_decimal_udf2.q   |  6 ++-
 .../queries/clientpositive/vectorized_math_funcs.q |  3 +-
 .../results/clientpositive/llap/udf_radians.q.out  | 16 +++---
 .../llap/vector_decimal_math_funcs.q.out   | 60 --
 .../clientpositive/llap/vector_decimal_udf2.q.out  | 12 ++---
 .../llap/vectorized_math_funcs.q.out   | 28 +-
 .../apache/hadoop/hive/tools/GenVectorCode.java| 24 -
 21 files changed, 101 insertions(+), 89 deletions(-)

diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseDoubleToDouble.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseDoubleToDouble.java
index b799379d57c..5c9d220f762 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseDoubleToDouble.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseDoubleToDouble.java
@@ -40,7 +40,7 @@ public class FuncLogWithBaseDoubleToDouble extends 
MathFuncDoubleToDouble {
 
   @Override
   protected double func(double d) {
-return Math.log(d) / Math.log(base);
+return StrictMath.log(d) / StrictMath.log(base);
   }
 
   public double getBase() {
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseLongToDouble.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseLongToDouble.java
index f23783e376a..1ac288a9d22 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseLongToDouble.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncLogWithBaseLongToDouble.java
@@ -40,7 +40,7 @@ public class FuncLogWithBaseLongToDouble extends 
MathFuncLongToDouble {
 
   @Override
   protected double func(long l) {
-return Math.log((double) l) / Math.log(base);
+return StrictMath.log((double) l) / StrictMath.log(base);
   }
 
   public double getBase() {
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncPowerDoubleToDouble.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncPowerDoubleToDouble.java
index 6b43a02785e..b25c06c9248 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncPowerDoubleToDouble.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncPowerDoubleToDouble.java
@@ -43,7 +43,7 @@ public class FuncPowerDoubleToDouble extends 
MathFuncDoubleToDouble {
 
   @Override
   public double func(double d) {
-return Math.pow(d, power);
+return StrictMath.pow(d, power);
   }
 
   public double getPower() {
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FuncPowerLongToDouble.java
 

[hive] branch branch-3 updated (d851e9cee06 -> 8ed723cac8b)

2023-04-13 Thread sankarh
This is an automated email from the ASF dual-hosted git repository.

sankarh pushed a change to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git


from d851e9cee06 HIVE-27209: Backport HIVE-24569 - LLAP daemon leaks file 
descriptors/log4j appenders (Stamatis Zampetakis, reviewed by Jesus Camacho 
Rodriguez)
 add 8ed723cac8b HIVE-27220:  Backport Upgrade 
commons,httpclient,jackson,jetty,log4j binaries from branch-3.1 (Naveen Gangam, 
Apoorva Aggarwal, reviewed by Aman Raj)

No new revisions were added by this update.

Summary of changes:
 itests/qtest-druid/pom.xml   |  2 +-
 pom.xml  | 10 +-
 standalone-metastore/pom.xml |  2 +-
 testutils/ptest2/pom.xml |  2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)