Skip to content

Commit 534cbc7

Browse files
authored
repo-sync-2024-12-18T16:45:42+0800 (#13)
### Added - [Feature] SCQL is supported to query ODPS data sources ### Fixed - Fixed the ODPS resource read and write issues ### Removed - Removed support for localfs, OSS, and MySQL data sources, which are provided by Kuscia
1 parent c5e7c67 commit 534cbc7

File tree

219 files changed

+6492
-11621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+6492
-11621
lines changed

build/Dockerfiles/dataproxy.Dockerfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ WORKDIR /app
2020
# fix: RunP proot + java bug
2121
RUN ln -s ${JAVA_HOME}/lib/libjli.so /lib64
2222

23-
COPY target/*.jar dataproxy.jar
24-
COPY config/application.yaml application.yaml
25-
COPY scripts/start_dp.sh start_dp.sh
26-
ENV JAVA_OPTS="" SPRING_PROFILES_ACTIVE="default"
23+
COPY dataproxy-server/target/dataproxy-server-0.0.1-SNAPSHOT.jar dataproxy.jar
24+
COPY libs/*.jar libs/
25+
26+
ENV JAVA_OPTS=""
27+
ENV LOG_LEVEL=INFO
2728
EXPOSE 8023
28-
ENTRYPOINT ${JAVA_HOME}/bin/java ${JAVA_OPTS} -Dsun.net.http.allowRestrictedHeaders=true --add-opens=java.base/java.nio=ALL-UNNAMED -jar -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} ./dataproxy.jar
29+
ENTRYPOINT ${JAVA_HOME}/bin/java ${JAVA_OPTS} -Dsun.net.http.allowRestrictedHeaders=true --add-opens=java.base/java.nio=ALL-UNNAMED -jar ./dataproxy.jar

config/application.yaml

-40
This file was deleted.

dataproxy-api/pom.xml

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<groupId>org.secretflow</groupId>
88
<artifactId>dataproxy</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>dataproxy-api</artifactId>
@@ -21,16 +22,19 @@
2122
<artifactId>protobuf-java-util</artifactId>
2223
</dependency>
2324
<dependency>
24-
<groupId>org.apache.arrow</groupId>
25-
<artifactId>flight-grpc</artifactId>
25+
<groupId>io.grpc</groupId>
26+
<artifactId>grpc-protobuf</artifactId>
27+
<scope>compile</scope>
2628
</dependency>
2729
<dependency>
2830
<groupId>io.grpc</groupId>
29-
<artifactId>grpc-netty-shaded</artifactId>
31+
<artifactId>grpc-stub</artifactId>
32+
<scope>compile</scope>
3033
</dependency>
3134
<dependency>
3235
<groupId>javax.annotation</groupId>
3336
<artifactId>javax.annotation-api</artifactId>
37+
<scope>compile</scope>
3438
</dependency>
3539
</dependencies>
3640

dataproxy-common/pom.xml

+17-10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<groupId>org.secretflow</groupId>
88
<artifactId>dataproxy</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>dataproxy-common</artifactId>
@@ -20,23 +21,24 @@
2021
<dependency>
2122
<groupId>org.projectlombok</groupId>
2223
<artifactId>lombok</artifactId>
24+
<scope>compile</scope>
2325
</dependency>
24-
<dependency>
26+
<!--<dependency>
2527
<groupId>com.fasterxml.jackson.datatype</groupId>
2628
<artifactId>jackson-datatype-jsr310</artifactId>
27-
</dependency>
28-
<dependency>
29+
</dependency>-->
30+
<!--<dependency>
2931
<groupId>org.apache.commons</groupId>
3032
<artifactId>commons-collections4</artifactId>
31-
</dependency>
32-
<dependency>
33+
</dependency>-->
34+
<!--<dependency>
3335
<groupId>org.apache.commons</groupId>
3436
<artifactId>commons-lang3</artifactId>
3537
</dependency>
3638
<dependency>
3739
<groupId>commons-io</groupId>
3840
<artifactId>commons-io</artifactId>
39-
</dependency>
41+
</dependency>-->
4042
<dependency>
4143
<groupId>io.netty</groupId>
4244
<artifactId>netty-all</artifactId>
@@ -45,10 +47,10 @@
4547
<groupId>io.netty</groupId>
4648
<artifactId>netty-tcnative-boringssl-static</artifactId>
4749
</dependency>
48-
<dependency>
50+
<!--<dependency>
4951
<groupId>com.squareup.okio</groupId>
5052
<artifactId>okio</artifactId>
51-
</dependency>
53+
</dependency>-->
5254

5355
<dependency>
5456
<groupId>com.google.protobuf</groupId>
@@ -80,12 +82,17 @@
8082
<groupId>org.apache.arrow</groupId>
8183
<artifactId>flight-core</artifactId>
8284
</dependency>
83-
<dependency>
85+
<!--<dependency>
8486
<groupId>org.apache.arrow</groupId>
8587
<artifactId>flight-grpc</artifactId>
86-
</dependency>
88+
</dependency>-->
8789

8890
<!-- apache arrow end-->
91+
92+
<!--<dependency>
93+
<groupId>javax.annotation</groupId>
94+
<artifactId>javax.annotation-api</artifactId>
95+
</dependency>-->
8996
</dependencies>
9097

9198
</project>

dataproxy-common/src/main/java/org/secretflow/dataproxy/common/model/dataset/format/CSVFormatConfig.java

-66
This file was deleted.

dataproxy-common/src/main/java/org/secretflow/dataproxy/common/model/dataset/format/PartitionBehavior.java

-73
This file was deleted.

dataproxy-common/src/main/java/org/secretflow/dataproxy/common/model/dataset/format/TableFormatConfig.java

-56
This file was deleted.

dataproxy-common/src/main/java/org/secretflow/dataproxy/common/model/datasource/DatasourceConnConfig.java

-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import lombok.Data;
2222
import lombok.NoArgsConstructor;
2323
import org.secretflow.dataproxy.common.model.datasource.conn.ConnConfig;
24-
import org.secretflow.dataproxy.common.utils.IdUtils;
25-
import org.secretflow.dataproxy.common.utils.JsonUtils;
2624

2725
/**
2826
* Datasource connection config
@@ -46,7 +44,4 @@ public class DatasourceConnConfig {
4644
*/
4745
private ConnConfig connConfig;
4846

49-
public String generateUniqueId() {
50-
return IdUtils.combineIds(JsonUtils.toJSONString(this));
51-
}
5247
}

0 commit comments

Comments
 (0)