File tree Expand file tree Collapse file tree 3 files changed +34
-75
lines changed
paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark Expand file tree Collapse file tree 3 files changed +34
-75
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2525 - ' docs/**'
2626 - ' **/*.md'
2727
28- env :
29- JDK_VERSION : 8
30-
3128concurrency :
3229 group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
3330 cancel-in-progress : true
3431
3532jobs :
36- build :
33+ Spark 3.x :
3734 runs-on : ubuntu-latest
38-
3935 steps :
4036 - name : Checkout code
4137 uses : actions/checkout@v4
42- - name : Set up JDK ${{ env.JDK_VERSION }}
38+ - name : Set up JDK 8
4339 uses : actions/setup-java@v4
4440 with :
45- java-version : ${{ env.JDK_VERSION }}
41+ java-version : 8
4642 distribution : ' temurin'
47- - name : Build Spark
43+ - name : Build Spark 3.x
4844 run : mvn -T 2C -B clean install -DskipTests
49- - name : Test Spark
45+ - name : Test Spark 3.x
5046 timeout-minutes : 60
5147 run : |
5248 # run tests with random timezone to find out timezone related bugs
6056 test_modules="${test_modules%,}"
6157 mvn -T 2C -B test -pl "${test_modules}" -Duser.timezone=$jvm_timezone
6258 env :
63- MAVEN_OPTS : -Xmx4096m
59+ MAVEN_OPTS : -Xmx4096m
60+ Spark 4.x :
61+ runs-on : ubuntu-latest
62+
63+ steps :
64+ - name : Checkout code
65+ uses : actions/checkout@v4
66+ - name : Set up JDK 17
67+ uses : actions/setup-java@v4
68+ with :
69+ java-version : 17
70+ distribution : ' temurin'
71+ - name : Build Spark 4.x
72+ run : mvn -T 2C -B clean install -DskipTests -Pspark4
73+ - name : Test Spark 4.x
74+ timeout-minutes : 60
75+ run : |
76+ # run tests with random timezone to find out timezone related bugs
77+ . .github/workflows/utils.sh
78+ jvm_timezone=$(random_timezone)
79+ echo "JVM timezone is set to $jvm_timezone"
80+ test_modules=""
81+ for suffix in ut 4.0; do
82+ test_modules+="org.apache.paimon:paimon-spark-${suffix},"
83+ done
84+ test_modules="${test_modules%,}"
85+ mvn -T 2C -B test -pl "${test_modules}" -Duser.timezone=$jvm_timezone -Pspark4
86+ env :
87+ MAVEN_OPTS : -Xmx4096m
Original file line number Diff line number Diff line change @@ -64,15 +64,13 @@ class PaimonHiveTestBase extends PaimonSparkTestBase {
6464 super .beforeAll()
6565 spark.sql(s " USE $sparkCatalogName" )
6666 spark.sql(s " CREATE DATABASE IF NOT EXISTS $hiveDbName" )
67- println(s " CREATE DATABASE IF NOT EXISTS $hiveDbName" )
6867 }
6968
7069 override protected def afterAll (): Unit = {
7170 try {
7271 spark.sql(s " USE $sparkCatalogName" )
7372 spark.sql(" USE default" )
7473 spark.sql(s " DROP DATABASE $hiveDbName CASCADE " )
75- println(s " DROP DATABASE $hiveDbName CASCADE " )
7674 } finally {
7775 super .afterAll()
7876 testHiveMetastore.stop()
You can’t perform that action at this time.
0 commit comments