Skip to content

Commit b258543

Browse files
abhiseksaikiaarhimondr
authored andcommitted
Improve modularity of presto-hive-common module
Refactoring presto-hive-common module by creating a separate module for files required by presto-parquet and presto-cache modules to reduce dependency clutter
1 parent b4721ff commit b258543

File tree

28 files changed

+237
-18
lines changed

28 files changed

+237
-18
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
<module>presto-parquet</module>
109109
<module>presto-rcfile</module>
110110
<module>presto-hive</module>
111+
<module>presto-hdfs-core</module>
111112
<module>presto-hive-common</module>
112113
<module>presto-hive-hadoop2</module>
113114
<module>presto-hive-metastore</module>
@@ -312,6 +313,12 @@
312313
<version>${project.version}</version>
313314
</dependency>
314315

316+
<dependency>
317+
<groupId>com.facebook.presto</groupId>
318+
<artifactId>presto-hdfs-core</artifactId>
319+
<version>${project.version}</version>
320+
</dependency>
321+
315322
<dependency>
316323
<groupId>com.facebook.presto</groupId>
317324
<artifactId>presto-hive-common</artifactId>

presto-cache/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<dependency>
2525
<groupId>com.facebook.presto</groupId>
26-
<artifactId>presto-hive-common</artifactId>
26+
<artifactId>presto-hdfs-core</artifactId>
2727
</dependency>
2828

2929
<dependency>

presto-delta/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@
153153
<artifactId>presto-hive-common</artifactId>
154154
</dependency>
155155

156+
<dependency>
157+
<groupId>com.facebook.presto</groupId>
158+
<artifactId>presto-hdfs-core</artifactId>
159+
</dependency>
160+
156161
<dependency>
157162
<groupId>com.facebook.presto</groupId>
158163
<artifactId>presto-parquet</artifactId>

presto-hdfs-core/pom.xml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<artifactId>presto-root</artifactId>
7+
<groupId>com.facebook.presto</groupId>
8+
<version>0.288-SNAPSHOT</version>
9+
</parent>
10+
11+
<properties>
12+
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
13+
</properties>
14+
15+
<artifactId>presto-hdfs-core</artifactId>
16+
<dependencies>
17+
<dependency>
18+
<groupId>com.facebook.presto</groupId>
19+
<artifactId>presto-common</artifactId>
20+
</dependency>
21+
22+
<dependency>
23+
<groupId>com.google.code.findbugs</groupId>
24+
<artifactId>jsr305</artifactId>
25+
<optional>true</optional>
26+
</dependency>
27+
28+
<dependency>
29+
<groupId>io.airlift</groupId>
30+
<artifactId>slice</artifactId>
31+
</dependency>
32+
33+
<dependency>
34+
<groupId>com.facebook.presto</groupId>
35+
<artifactId>presto-spi</artifactId>
36+
</dependency>
37+
38+
<dependency>
39+
<groupId>com.facebook.presto.hadoop</groupId>
40+
<artifactId>hadoop-apache2</artifactId>
41+
</dependency>
42+
43+
<dependency>
44+
<groupId>com.google.guava</groupId>
45+
<artifactId>guava</artifactId>
46+
</dependency>
47+
48+
<dependency>
49+
<groupId>io.airlift</groupId>
50+
<artifactId>units</artifactId>
51+
</dependency>
52+
53+
<dependency>
54+
<groupId>com.fasterxml.jackson.core</groupId>
55+
<artifactId>jackson-annotations</artifactId>
56+
</dependency>
57+
58+
<dependency>
59+
<groupId>org.weakref</groupId>
60+
<artifactId>jmxutils</artifactId>
61+
</dependency>
62+
63+
<dependency>
64+
<groupId>com.facebook.drift</groupId>
65+
<artifactId>drift-api</artifactId>
66+
</dependency>
67+
68+
<!-- for testing -->
69+
<dependency>
70+
<groupId>org.testng</groupId>
71+
<artifactId>testng</artifactId>
72+
<scope>test</scope>
73+
</dependency>
74+
75+
<dependency>
76+
<groupId>com.facebook.drift</groupId>
77+
<artifactId>drift-codec</artifactId>
78+
<scope>test</scope>
79+
</dependency>
80+
81+
<dependency>
82+
<groupId>com.facebook.drift</groupId>
83+
<artifactId>drift-transport-netty</artifactId>
84+
<scope>test</scope>
85+
</dependency>
86+
87+
<dependency>
88+
<groupId>com.facebook.airlift</groupId>
89+
<artifactId>http-client</artifactId>
90+
<scope>test</scope>
91+
</dependency>
92+
</dependencies>
93+
</project>

0 commit comments

Comments
 (0)