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

soumyakanti3578 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 4e0ed4254f2 HIVE-28978: Remove explicit json-path dependency 
declaration (#6929)
4e0ed4254f2 is described below

commit 4e0ed4254f298221ad48fbda85f2d682e6763455
Author: Stamatis Zampetakis <[email protected]>
AuthorDate: Thu Oct 29 22:09:07 2026 +0100

    HIVE-28978: Remove explicit json-path dependency declaration (#6929)
    
    The json-path dependency is coming from Calcite and its only used by the 
respective code.
    Pinning down the json-path version to 2.9.0 in Hive leads to version 
misalignment since
    the current version of Calcite uses json-path 2.10.0.
    A side-effect of the version pindown is to get stack with obsolete and 
insecure transitive
    depenencies, such as json-smart:2.5.0, that are not even used in Hive.
    
    In order to avoid version inconsistencies and inclusion of obsolete and 
insecure deps in
    the Hive runtime we opt to bundle the json-path dependency in the shaded 
jar. This ensures
    the correct json-path (as defined by Calcite) is used at runtime while its 
unused
    transitive dependencies (json-smart, accessors-smart) are dropped from the 
dependency tree.
---
 pom.xml    | 7 -------
 ql/pom.xml | 5 +----
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/pom.xml b/pom.xml
index dc70c8b6da8..abdcf5e9e8c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -234,7 +234,6 @@
     <gson.version>2.9.0</gson.version>
     <re2j.version>1.2</re2j.version>
     <rs-api.version>2.0.1</rs-api.version>
-    <json-path.version>2.9.0</json-path.version>
     <janino.version>3.1.12</janino.version>
     <jakarta.annotation.version>2.1.1</jakarta.annotation.version>
     <datasketches.version>2.0.0</datasketches.version>
@@ -1355,12 +1354,6 @@
         <artifactId>re2j</artifactId>
         <version>${re2j.version}</version>
       </dependency>
-      <dependency>
-        <groupId>com.jayway.jsonpath</groupId>
-        <artifactId>json-path</artifactId>
-        <version>${json-path.version}</version>
-        <scope>runtime</scope>
-      </dependency>
       <dependency>
         <groupId>org.codehaus.janino</groupId>
         <artifactId>commons-compiler</artifactId>
diff --git a/ql/pom.xml b/ql/pom.xml
index 162e732ee7f..0de1c013b5d 100644
--- a/ql/pom.xml
+++ b/ql/pom.xml
@@ -864,10 +864,6 @@
         </exclusion>
       </exclusions>
     </dependency>
-    <dependency>
-      <groupId>com.jayway.jsonpath</groupId>
-      <artifactId>json-path</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.codehaus.janino</groupId>
       <artifactId>commons-compiler</artifactId>
@@ -1151,6 +1147,7 @@
                   <include>com.googlecode.json-simple:json-simple</include>
                   <include>com.esri.geometry:esri-geometry-api</include>
                   <include>org.apache.tez:tez-protobuf-history-plugin</include>
+                  <include>com.jayway.jsonpath:*</include>
                 </includes>
               </artifactSet>
               <filters>

Reply via email to