cloud-fan commented on a change in pull request #31316:
URL: https://github.com/apache/spark/pull/31316#discussion_r580984691
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala
##########
@@ -218,7 +218,7 @@ class ResolveSessionCatalog(val catalogManager:
CatalogManager)
throw QueryCompilationErrors.commandNotSupportNestedColumnError(
"DESC TABLE COLUMN", toPrettySQL(child))
case other =>
- throw new AnalysisException(s"[BUG] unexpected column expression:
$other")
+ throw QueryCompilationErrors.unexpectedColumnExpressionError(other)
Review comment:
[BUG] indicates that it's an assert-like error. We can simply change the
exception type to `IllegalStateException`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]