You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ng...@apache.org on 2022/02/27 22:32:43 UTC

[hive] branch branch-3.1 updated (dd7ffab -> b91aec6)

This is an automated email from the ASF dual-hosted git repository.

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


    from dd7ffab  Hive-24741 backport to 3.1 (Nilesh Salian, reviewed by Vihang Karajgaonkar)
     add 579636d  HIVE-25795: Update log4j2 version to 2.16.0 for branch-3 (Naveen Gangam)
     add 417bb87  HIVE-25709: Upgrading netty binaries to newer release (Naveen Gangam reviewed by Yongzhi Chen)
     add f2ba265  HIVE-25795: [addendum] Unit test failures from upgrade to log4j 2.16.0 (Naveen Gangam)
     add e9b2acf  Upgrade commons,httpclient,jackson,jetty,log4j binaries (Naveen Gangam)
     add 5ea9a9c  HIVE-25726: Upgrade velocity to 2.3 due to CVE-2020-13936 (Sourabh Goyal via Naveen Gangam)
     add 1b22ac3  HIVE-24288: Temp files created by CompileProcessor are not deleted (Naveen Gangam)
     add 164486f  HIVE-25468: Authorization for Create/Drop functions in HMS(Saihemanth Gantasala via Naveen Gangam)
     add 135cfe6  HIVE-25547: Alter view as Select statement should create Authorizable events in HS2(Saihemanth reviewed by Naveen Gangam)
     add cc59002  HIVE-24816: Jackson version changed to 2.11.0 in the pom files (#2075) (Sai Hemanth Gantasala, reviewed by Yongzhi Chen)
     add d8d6fb3  Revert Jetty upgrade (Naveen Gangam)
     add 11279e7  Revert "HIVE-25709: Upgrading netty binaries to newer release (Naveen Gangam reviewed by Yongzhi Chen)"
     add 1eda74d  Log4j to 2.17.1 (Naveen Gangam)
     add a9dc936  Fixes for some test failures with LLAP Driver (Naveen Gangam)
     add 37a4fd3  HIVE-20179: Some Tez jar-s are not on classpath so HS2 keeps too long to start (Peter Vary, reviewed by Zoltan Haindrich)
     add 8119486  Fixes for some test failures for views (Naveen Gangam)
     add 8d9eb0c  Test fixes for lineage3.q and load_static_ptn_into_bucketed_table.q (Naveen Gangam)
     new b91aec6  TestPartition test failure in HMS tests (Naveen Gangam)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 bin/hive-config.sh                                 |    4 +
 .../plugin/TestHiveAuthorizerCheckInvocation.java  |   23 +
 .../cli/operation/TestOperationLoggingLayout.java  |    4 +-
 itests/qtest-druid/pom.xml                         |    2 +-
 .../hadoop/hive/cli/TestMiniDruidCliDriver.java    |    3 +-
 .../hive/cli/TestMiniDruidKafkaCliDriver.java      |    3 +-
 pom.xml                                            |   20 +-
 .../ql/log/SlidingFilenameRolloverStrategy.java    |    4 +
 .../hadoop/hive/ql/parse/SemanticAnalyzer.java     |    6 +-
 .../hive/ql/processors/CompileProcessor.java       |   53 +-
 .../AuthorizationPreEventListener.java             |   38 +
 .../queries/clientpositive/druid_timestamptz2.q    |    3 +
 .../queries/clientpositive/druidmini_extractTime.q |   12 +-
 .../queries/clientpositive/druidmini_floorTime.q   |   12 +-
 ql/src/test/queries/clientpositive/druidmini_mv.q  |    1 +
 .../test/queries/clientpositive/druidmini_test1.q  |    8 +-
 .../queries/clientpositive/druidmini_test_alter.q  |    6 +-
 .../queries/clientpositive/druidmini_test_insert.q |    6 +-
 .../clientpositive/alter_view_as_select.q.out      |   18 +-
 .../clientpositive/alter_view_col_type.q.out       |    8 +-
 .../results/clientpositive/llap/lineage3.q.out     |    6 +-
 .../clientpositive/llap/load_data_using_job.q.out  | 1687 ++++++++++----------
 .../clientpositive/llap/results_cache_2.q.out      |    2 +-
 .../llap/results_cache_with_masking.q.out          |    1 -
 .../results/clientpositive/llap/sharedwork.q.out   |   22 +-
 .../clientpositive/llap/subquery_views.q.out       |  158 +-
 .../load_static_ptn_into_bucketed_table.q.out      |   60 +-
 .../apache/hive/service/server/HiveServer2.java    |   20 +-
 standalone-metastore/pom.xml                       |    9 +-
 .../hadoop/hive/metastore/HiveMetaStore.java       |   15 +-
 .../apache/hadoop/hive/metastore/ObjectStore.java  |   13 +-
 .../metastore/events/PreCreateFunctionEvent.java   |   35 +-
 .../metastore/events/PreDropFunctionEvent.java     |   35 +-
 .../hive/metastore/events/PreEventContext.java     |    4 +-
 .../hive/metastore/client/TestFunctions.java       |    3 +-
 .../ptest2/conf/deployed/master-mr2.properties     |    8 +
 testutils/ptest2/pom.xml                           |    4 +-
 .../ptest2/src/main/resources/log4j2.properties    |    2 +-
 .../ptest2/src/test/resources/log4j2.properties    |    2 +-
 vector-code-gen/pom.xml                            |   11 -
 40 files changed, 1243 insertions(+), 1088 deletions(-)
 copy testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/Dirs.java => standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreCreateFunctionEvent.java (54%)
 copy testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/Dirs.java => standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreDropFunctionEvent.java (54%)

[hive] 01/01: TestPartition test failure in HMS tests (Naveen Gangam)

Posted by ng...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ngangam pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/hive.git

commit b91aec6729f4ed3f9d1f56ae7ae122c72249b22b
Author: Naveen Gangam <ng...@cloudera.com>
AuthorDate: Fri Feb 4 11:19:13 2022 -0500

    TestPartition test failure in HMS tests (Naveen Gangam)
---
 .../java/org/apache/hadoop/hive/metastore/ObjectStore.java  | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
index f32e497..99fc74e 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
@@ -3227,12 +3227,13 @@ public class ObjectStore implements RawStore, Configurable {
           max_parts, null, queryWrapper);
       for (Object o : parts) {
         Partition part = convertToPart((MPartition) o);
-        // set auth privileges
-        String partName = Warehouse.makePartName(this.convertToFieldSchemas(mtbl
-            .getPartitionKeys()), part.getValues());
-        PrincipalPrivilegeSet partAuth = getPartitionPrivilegeSet(catName, db_name,
-            tbl_name, partName, userName, groupNames);
-        part.setPrivileges(partAuth);
+        if (getauth) {
+          // set auth privileges
+          String partName = Warehouse.makePartName(this.convertToFieldSchemas(mtbl.getPartitionKeys()), part.getValues());
+          PrincipalPrivilegeSet partAuth =
+              getPartitionPrivilegeSet(catName, db_name, tbl_name, partName, userName, groupNames);
+          part.setPrivileges(partAuth);
+        }
         partitions.add(part);
       }
       success = commitTransaction();