cloud-fan commented on code in PR #37750:
URL: https://github.com/apache/spark/pull/37750#discussion_r961836481
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -1821,6 +1823,23 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase {
new AnalysisException(s"Table or view not found: $table")
}
+ def noSuchFunctionError(
Review Comment:
We already have a `def noSuchFunctionError` and it's error message looks
pretty good. I think we just need to append a hint for using `SELECT DISTINCT
...` if the function name is a single `DISTINCT`.
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -1821,6 +1823,23 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase {
new AnalysisException(s"Table or view not found: $table")
}
+ def noSuchFunctionError(
Review Comment:
We already have a `def noSuchFunctionError` and its error message looks
pretty good. I think we just need to append a hint for using `SELECT DISTINCT
...` if the function name is a single `DISTINCT`.
--
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]