Skip to content

Commit c6c74bb

Browse files
authored
docs: Add instructions for running individual Spark SQL tests from sbt (#1752)
1 parent c6658bf commit c6c74bb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/source/contributor-guide/spark-sql-tests.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ git apply ../datafusion-comet/dev/diffs/3.4.3.diff
5454

5555
## 3. Run Spark SQL Tests
5656

57-
Use the following commands to run the SQL tests locally.
57+
#### Use the following commands to run the Spark SQL test suite locally.
5858

5959
```shell
6060
ENABLE_COMET=true build/sbt catalyst/test
@@ -65,6 +65,15 @@ ENABLE_COMET=true build/sbt "hive/testOnly * -- -l org.apache.spark.tags.Extende
6565
ENABLE_COMET=true build/sbt "hive/testOnly * -- -n org.apache.spark.tags.ExtendedHiveTest"
6666
ENABLE_COMET=true build/sbt "hive/testOnly * -- -n org.apache.spark.tags.SlowHiveTest"
6767
```
68+
#### Steps to run individual test suites
69+
1. Open SBT with Comet enabled
70+
```sbt
71+
ENABLE_COMET=true sbt -Dspark.test.includeSlowTests=true
72+
```
73+
2. Run individual tests (Below code runs test named `SPARK-35568` in the `spark-sql` module)
74+
```sbt
75+
sql/testOnly org.apache.spark.sql.DynamicPartitionPruningV1SuiteAEOn -- -z "SPARK-35568"
76+
```
6877

6978
## Creating a diff file for a new Spark version
7079

0 commit comments

Comments
 (0)