You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/09/17 05:47:33 UTC
[GitHub] [spark] dongjoon-hyun commented on a diff in pull request #37879: [SPARK-40425][SQL] DROP TABLE does not need to do table lookup
dongjoon-hyun commented on code in PR #37879:
URL: https://github.com/apache/spark/pull/37879#discussion_r973544556
##########
core/src/test/scala/org/apache/spark/SparkFunSuite.scala:
##########
@@ -299,10 +299,15 @@ abstract class SparkFunSuite
parameters: Map[String, String] = Map.empty,
matchPVals: Boolean = false,
queryContext: Array[QueryContext] = Array.empty): Unit = {
- assert(exception.getErrorClass === errorClass)
+ val mainErrorClass :: tail = errorClass.split("\\.").toList
+ assert(tail.isEmpty || tail.length == 1)
+ // TODO: remove the `errorSubClass` parameter.
Review Comment:
just nit. If we use IDed TODO, some contributor can pick up the item more easily.
##########
core/src/test/scala/org/apache/spark/SparkFunSuite.scala:
##########
@@ -299,10 +299,15 @@ abstract class SparkFunSuite
parameters: Map[String, String] = Map.empty,
matchPVals: Boolean = false,
queryContext: Array[QueryContext] = Array.empty): Unit = {
- assert(exception.getErrorClass === errorClass)
+ val mainErrorClass :: tail = errorClass.split("\\.").toList
+ assert(tail.isEmpty || tail.length == 1)
+ // TODO: remove the `errorSubClass` parameter.
Review Comment:
just nit. If we use IDed TODO with JIRA id, some contributor can pick up the item more easily.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org