Skip to content

Commit 95b532d

Browse files
committed
wip: add delta integration test
1 parent 9ddf699 commit 95b532d

35 files changed

Lines changed: 6187 additions & 0 deletions

tests/spark/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This application produces data used by the delta kuttl test.
2+
3+
It cannot be placed in the delta test folder because beku tries to recurse into it and fails.
4+
5+
S3_ENDPOINT=https://localhost:9000 \
6+
S3_ACCESS_KEY=minioAccessKey \
7+
S3_SECRET_KEY=minioSecretKey \
8+
S3_SKIP_TLS_VALIDATION=true \
9+
DELTA_TABLE_PATH=s3a://trino/delta-table \
10+
./gradlew run

tests/spark/build.gradle

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
plugins {
2+
id 'java'
3+
id 'application'
4+
}
5+
6+
group = 'org.example'
7+
version = '1.0-SNAPSHOT'
8+
9+
application {
10+
mainClass = 'org.example.Main'
11+
applicationDefaultJvmArgs = [
12+
'--add-opens=java.base/sun.nio.ch=ALL-UNNAMED'
13+
]
14+
}
15+
16+
repositories {
17+
mavenCentral()
18+
}
19+
20+
21+
dependencies {
22+
23+
// Source: https://mvnrepository.com/artifact/org.apache.spark/spark-sql
24+
implementation 'org.apache.spark:spark-sql_2.12:3.5.5'
25+
// Source: https://mvnrepository.com/artifact/io.delta/delta-spark
26+
implementation 'io.delta:delta-spark_2.12:3.3.2'
27+
// Source: https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-aws
28+
implementation 'org.apache.hadoop:hadoop-aws:3.3.4'
29+
// Source: https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-bundle
30+
implementation 'com.amazonaws:aws-java-sdk-bundle:1.12.262'
31+
32+
testImplementation platform('org.junit:junit-bom:5.10.0')
33+
testImplementation 'org.junit.jupiter:junit-jupiter'
34+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
35+
}
36+
37+
test {
38+
useJUnitPlatform()
39+
}
47.8 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

tests/spark/gradlew

Lines changed: 248 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)