subhramit commented on code in PR #58225:
URL: https://github.com/apache/spark/pull/58225#discussion_r3891452062


##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/H2Dialect.scala:
##########
@@ -228,7 +228,12 @@ private[sql] case class H2Dialect() extends JdbcDialect 
with NoLegacyJDBCError {
             val relationName = messageParameters.getOrElse("tableName", "")
             throw new NoSuchTableException(
               errorClass = "TABLE_OR_VIEW_NOT_FOUND",
-              messageParameters = Map("relationName" -> relationName),
+              messageParameters = Map(
+                "relationName" -> relationName,
+                // classifyException receives only pre-rendered strings, so no 
Spark-side
+                // search path exists here; "not available" matches the 
rendering used for
+                // an empty search path.
+                "searchPath" -> "not available"),

Review Comment:
   Switched it over to the shared empty-search-path rendering in 
https://github.com/apache/spark/pull/58225/commits/e37e909bf534a49f1be030b32a9dc5a1b6ea4df4



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