panbingkun commented on code in PR #42952:
URL: https://github.com/apache/spark/pull/42952#discussion_r1327937136
##########
core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala:
##########
@@ -222,6 +223,21 @@ class SparkThrowableSuite extends SparkFunSuite {
|---""".stripMargin
}
+ def orphanedGoldenFiles(): Iterable[File] = {
+ val errors = errorReader.errorInfoMap
+ val subErrorFileNames = errors.filter(_._2.subClass.isDefined).map(error
=> {
+ getErrorPath(error._1) + ".md"
+ }).toSet
+
+ val docsDir = getWorkspaceFilePath("docs")
+ val orphans = FileUtils.listFiles(docsDir.toFile, Array("md"),
false).filter { f =>
+ (f.getName.startsWith("sql-error-conditions-") &&
f.getName.endsWith("-error-class.md")) &&
+ !f.getName.equals("sql-error-conditions-sqlstates.md") &&
Review Comment:
Yeah, let me remove it.
All done.
--
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]