Skip to content

Commit 82b8bbf

Browse files
viiryasunchao
authored andcommitted
HIVE-23980: Shade Guava from hive-exec in Hive branch-2 (Liang-Chi, reviewed by Chao Sun) (#1397)
1 parent 56d76cd commit 82b8bbf

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

common/src/java/org/apache/hadoop/hive/ql/log/PerfLogger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ public Long getDuration(String method) {
207207
}
208208

209209

210-
public ImmutableMap<String, Long> getStartTimes() {
210+
public Map<String, Long> getStartTimes() {
211211
return ImmutableMap.copyOf(startTimes);
212212
}
213213

214-
public ImmutableMap<String, Long> getEndTimes() {
214+
public Map<String, Long> getEndTimes() {
215215
return ImmutableMap.copyOf(endTimes);
216216
}
217217

ql/pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,8 @@
850850
<include>org.apache.hive:hive-metastore</include>
851851
<include>org.apache.hive:hive-service-rpc</include>
852852
<include>com.esotericsoftware:kryo-shaded</include>
853-
<include>com.esotericsoftware:minlog</include>
854-
<include>org.objenesis:objenesis</include>
853+
<include>com.esotericsoftware:minlog</include>
854+
<include>org.objenesis:objenesis</include>
855855
<include>org.apache.parquet:parquet-hadoop-bundle</include>
856856
<include>org.apache.thrift:libthrift</include>
857857
<include>org.apache.thrift:libfb303</include>
@@ -889,6 +889,14 @@
889889
<pattern>org.objenesis</pattern>
890890
<shadedPattern>org.apache.hive.org.objenesis</shadedPattern>
891891
</relocation>
892+
<relocation>
893+
<pattern>com.google.common</pattern>
894+
<shadedPattern>org.apache.hive.com.google.common</shadedPattern>
895+
</relocation>
896+
<relocation>
897+
<pattern>com.google.thirdparty.publicsuffix</pattern>
898+
<shadedPattern>org.apache.hive.com.google.thirdparty.publicsuffix</shadedPattern>
899+
</relocation>
892900
</relocations>
893901
</configuration>
894902
</execution>

ql/src/java/org/apache/hadoop/hive/ql/QueryDisplay.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818
package org.apache.hadoop.hive.ql;
1919

20-
import com.google.common.collect.ImmutableMap;
2120
import org.apache.hadoop.hive.ql.exec.Task;
2221
import org.apache.hadoop.hive.ql.exec.TaskResult;
2322
import org.apache.hadoop.hive.ql.plan.api.StageType;
@@ -226,7 +225,7 @@ public synchronized Map<String, Long> getHmsTimings(Phase phase) {
226225
* @param phase phase of query
227226
* @param hmsTimings map of HMS Client method-calls and duration in miliseconds, during given phase.
228227
*/
229-
public synchronized void setHmsTimings(Phase phase, ImmutableMap<String, Long> hmsTimings) {
228+
public synchronized void setHmsTimings(Phase phase, Map<String, Long> hmsTimings) {
230229
hmsTimingMap.put(phase, hmsTimings);
231230
}
232231

@@ -242,7 +241,7 @@ public synchronized Map<String, Long> getPerfLogStarts(Phase phase) {
242241
* @param phase phase of query
243242
* @param perfLogStarts map of PerfLogger call-trace name and start time in miliseconds, during given phase.
244243
*/
245-
public synchronized void setPerfLogStarts(Phase phase, ImmutableMap<String, Long> perfLogStarts) {
244+
public synchronized void setPerfLogStarts(Phase phase, Map<String, Long> perfLogStarts) {
246245
perfLogStartMap.put(phase, perfLogStarts);
247246
}
248247

@@ -258,7 +257,7 @@ public synchronized Map<String, Long> getPerfLogEnds(Phase phase) {
258257
* @param phase phase of query
259258
* @param perfLogEnds map of PerfLogger call-trace name and end time in miliseconds, during given phase.
260259
*/
261-
public synchronized void setPerfLogEnds(Phase phase, ImmutableMap<String, Long> perfLogEnds) {
260+
public synchronized void setPerfLogEnds(Phase phase, Map<String, Long> perfLogEnds) {
262261
perfLogEndMap.put(phase, perfLogEnds);
263262
}
264263

0 commit comments

Comments
 (0)