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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org