itholic commented on code in PR #48451:
URL: https://github.com/apache/spark/pull/48451#discussion_r1798878780
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -1729,10 +1729,10 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase with Compilat
"sourceNames" -> sourceNames.mkString(", ")))
}
- def writeEmptySchemasUnsupportedByDataSourceError(): Throwable = {
+ def writeEmptySchemasUnsupportedByDataSourceError(format: String): Throwable
= {
new AnalysisException(
- errorClass = "_LEGACY_ERROR_TEMP_1142",
- messageParameters = Map.empty)
+ errorClass = "EMPTY_SCHEMA_NOT_SUPPORTED_FOR_DATASOURCE",
+ messageParameters = Map("format" -> format))
Review Comment:
Added format name into error message. cc @MaxGekk fyi
--
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]