juntaozhang opened a new pull request, #8497:
URL: https://github.com/apache/paimon/pull/8497
### Purpose
Document that Spark and Flink tests must be run with explicit Maven
profiles (`-Pspark3`/`-Pspark4`/`-Pflink1`/`-Pflink2`). Without them,
cross-version modules such as `paimon-spark-common` stay out of the Maven
reactor and tests run against the stale jar from `~/.m2`.
>mvn -pl paimon-spark/paimon-spark-ut -am -Pfast-build \
-DwildcardSuites=none \
-DfailIfNoTests=false \
-Dtest=SparkChainTableITCase#testChainTable test
```
...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for Paimon : 1.5-SNAPSHOT:
[INFO]
[INFO] Paimon : ........................................... SUCCESS [ 1.877
s]
[INFO] Paimon : API ....................................... SUCCESS [ 0.667
s]
[INFO] Paimon : Test utils ................................ SUCCESS [ 0.273
s]
[INFO] Paimon : Common .................................... SUCCESS [ 3.370
s]
[INFO] Paimon : Code Gen .................................. SUCCESS [ 0.408
s]
[INFO] Paimon : Code Gen Loader ........................... SUCCESS [ 0.203
s]
[INFO] Paimon : Format .................................... SUCCESS [ 0.803
s]
[INFO] Paimon : Arrow ..................................... SUCCESS [ 0.505
s]
[INFO] Paimon : Core ...................................... SUCCESS [ 0.898
s]
[INFO] Paimon : Hive ...................................... SUCCESS [ 0.211
s]
[INFO] Paimon : Hive Common ............................... SUCCESS [ 1.400
s]
[INFO] Paimon : Hive Catalog .............................. SUCCESS [ 1.634
s]
[INFO] Paimon : Bundle .................................... SUCCESS [ 0.426
s]
[INFO] Paimon : FileSystems : ............................. SUCCESS [ 0.024
s]
[INFO] Paimon : FileSystems : Jindo ....................... SUCCESS [ 0.190
s]
[INFO] Paimon : VirtualFileSystem ......................... SUCCESS [ 0.086
s]
[INFO] Paimon : VirtualFileSystem Common .................. SUCCESS [ 0.074
s]
[INFO] Paimon : VirtualFileSystem Hadoop .................. SUCCESS [ 1.082
s]
[INFO] Paimon : Format : Lance ............................ SUCCESS [ 0.493
s]
[INFO] Paimon : Lumina Index .............................. SUCCESS [ 0.828
s]
[INFO] Paimon : Spark ..................................... SUCCESS [ 1.279
s]
[INFO] Paimon : Spark : UT : 2.12 ......................... SUCCESS [ 29.715
s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
...
```
>mvn -pl paimon-spark/paimon-spark-ut -am -Pfast-build -Pspark3 \
-DwildcardSuites=none \
-DfailIfNoTests=false \
-Dtest=SparkChainTableITCase#testChainTable test
```
...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for Paimon : 1.5-SNAPSHOT:
[INFO]
[INFO] Paimon : ........................................... SUCCESS [ 1.613
s]
[INFO] Paimon : API ....................................... SUCCESS [ 0.886
s]
[INFO] Paimon : Test utils ................................ SUCCESS [ 0.402
s]
[INFO] Paimon : Common .................................... SUCCESS [ 3.197
s]
[INFO] Paimon : Code Gen .................................. SUCCESS [ 0.468
s]
[INFO] Paimon : Code Gen Loader ........................... SUCCESS [ 0.230
s]
[INFO] Paimon : Format .................................... SUCCESS [ 0.804
s]
[INFO] Paimon : Arrow ..................................... SUCCESS [ 0.621
s]
[INFO] Paimon : Core ...................................... SUCCESS [ 1.218
s]
[INFO] Paimon : Hive ...................................... SUCCESS [ 0.209
s]
[INFO] Paimon : Hive Common ............................... SUCCESS [ 0.982
s]
[INFO] Paimon : Hive Catalog .............................. SUCCESS [ 1.554
s]
[INFO] Paimon : Bundle .................................... SUCCESS [ 0.460
s]
[INFO] Paimon : FileSystems : ............................. SUCCESS [ 0.022
s]
[INFO] Paimon : FileSystems : Jindo ....................... SUCCESS [ 0.209
s]
[INFO] Paimon : VirtualFileSystem ......................... SUCCESS [ 0.087
s]
[INFO] Paimon : VirtualFileSystem Common .................. SUCCESS [ 0.074
s]
[INFO] Paimon : VirtualFileSystem Hadoop .................. SUCCESS [ 0.982
s]
[INFO] Paimon : Format : Lance ............................ SUCCESS [ 0.354
s]
[INFO] Paimon : Lumina Index .............................. SUCCESS [ 0.791
s]
[INFO] Paimon : Spark ..................................... SUCCESS [ 1.275
s]
[INFO] Paimon : Spark : Common : 2.12 ..................... SUCCESS [ 6.647
s]
[INFO] Paimon : Spark3 : Common : 2.12 .................... SUCCESS [ 2.998
s]
[INFO] Paimon : Spark : UT : 2.12 ......................... SUCCESS [ 29.758
s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]