You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2022/11/27 12:04:22 UTC
[spark] branch master updated: [MINOR][SQL][TESTS] Restore the code style check of `QueryExecutionErrorsSuite`
This is an automated email from the ASF dual-hosted git repository.
maxgekk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new ed3775704bb [MINOR][SQL][TESTS] Restore the code style check of `QueryExecutionErrorsSuite`
ed3775704bb is described below
commit ed3775704bbdc9a9c479dc06565c8bf8c4d9640c
Author: yangjie01 <ya...@baidu.com>
AuthorDate: Sun Nov 27 15:03:35 2022 +0300
[MINOR][SQL][TESTS] Restore the code style check of `QueryExecutionErrorsSuite`
### What changes were proposed in this pull request?
https://github.com/apache/spark/blob/9af216d7ac26f0ec916833c2e80a01aef8933529/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala#L451-L454
As above code, line 451 in `QueryExecutionErrorsSuite.scala` turn off all scala style check and line 454 just turn on `throwerror` check, so the code after line 454 of the `QueryExecutionErrorsSuite.scala` will not be checked for code style except `throwerror`.
This pr restore the code style check and fix a existing `File line length exceeds 100 characters.` case.
### Why are the changes needed?
Restore the code style check of `QueryExecutionErrorsSuite`
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Pass GitHub Actions
Closes #38812 from LuciferYang/minor-checkstyle.
Authored-by: yangjie01 <ya...@baidu.com>
Signed-off-by: Max Gekk <ma...@gmail.com>
---
.../org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
index aa0f720d4de..807188bee3a 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
@@ -448,7 +448,7 @@ class QueryExecutionErrorsSuite
override def getResources(name: String): java.util.Enumeration[URL] = {
if (name.equals("META-INF/services/org.apache.spark.sql.sources.DataSourceRegister")) {
- // scalastyle:off
+ // scalastyle:off throwerror
throw new ServiceConfigurationError(s"Illegal configuration-file syntax: $name",
new NoClassDefFoundError("org.apache.spark.sql.sources.HadoopFsRelationProvider"))
// scalastyle:on throwerror
@@ -632,7 +632,8 @@ class QueryExecutionErrorsSuite
},
errorClass = "UNSUPPORTED_DATATYPE",
parameters = Map(
- "typeName" -> "StructType()[1.1] failure: 'TimestampType' expected but 'S' found\n\nStructType()\n^"
+ "typeName" ->
+ "StructType()[1.1] failure: 'TimestampType' expected but 'S' found\n\nStructType()\n^"
),
sqlState = "0A000")
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org