amaliujia commented on code in PR #38259:
URL: https://github.com/apache/spark/pull/38259#discussion_r996249978


##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala:
##########
@@ -34,6 +34,10 @@ import org.apache.spark.unsafe.types.{CalendarInterval, 
UTF8String}
 class DDLParserSuite extends AnalysisTest {
   import CatalystSqlParser._
 
+  private def parseException(sqlText: String): SparkThrowable = {
+    intercept[ParseException](parsePlan(sqlText))
+  }

Review Comment:
   Is this function can be shared with other Suites (e.g. 
https://github.com/apache/spark/pull/38265/) so move this one to `AnalysisTest`?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to