Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/20433#discussion_r174011447
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala ---
@@ -83,6 +83,15 @@ class SQLQueryTestSuite extends QueryTest with
SharedSQLContext {
private val regenerateGoldenFiles: Boolean =
System.getenv("SPARK_GENERATE_GOLDEN_FILES") == "1"
+ private val testFilter: Option[String] = {
+ val testFilter = System.getenv("SPARK_SQL_QUERY_TEST_FILTER")
+ if (testFilter != null && !testFilter.isEmpty) {
+ Some(testFilter.toLowerCase(Locale.ROOT))
+ } else {
+ None
+ }
+ }
+
--- End diff --
This is not related to this pr though, I think it is some useful to run
tests selectively in `SQLQueryTestSuite` (cuz the number of tests there grows
recently...). If possibly, could we add this feature in a separate pr?
Otherwise, I'll drop this.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]