@@ -1476,7 +1476,7 @@ class Analyzer(override val catalogManager: CatalogManager)
14761476 }
14771477 )
14781478 case g : Generate if containsStar(g.generator.children) =>
1479- throw QueryCompilationErrors .invalidStarUsageError(g.generator.prettyName )
1479+ throw QueryCompilationErrors .invalidStarUsageError(" explode/json_tuple/UDTF " )
14801480
14811481 // To resolve duplicate expression IDs for Join and Intersect
14821482 case j @ Join (left, right, _, _, _) if ! j.duplicateResolved =>
@@ -1736,7 +1736,7 @@ class Analyzer(override val catalogManager: CatalogManager)
17361736 })
17371737 // count(*) has been replaced by count(1)
17381738 case o if containsStar(o.children) =>
1739- throw QueryCompilationErrors .invalidStarUsageError(o.prettyName)
1739+ throw QueryCompilationErrors .invalidStarUsageError(s " expression ' ${ o.prettyName} ' " )
17401740 }
17411741 }
17421742 }
@@ -2836,10 +2836,10 @@ class Analyzer(override val catalogManager: CatalogManager)
28362836 def apply (plan : LogicalPlan ): LogicalPlan = plan resolveOperatorsDown {
28372837
28382838 case Filter (condition, _) if hasWindowFunction(condition) =>
2839- throw QueryCompilationErrors .windowFunctionNotAllowedError
2839+ throw QueryCompilationErrors .windowFunctionNotAllowedError( " WHERE " )
28402840
28412841 case UnresolvedHaving (condition, _) if hasWindowFunction(condition) =>
2842- throw QueryCompilationErrors .windowFunctionNotAllowedError
2842+ throw QueryCompilationErrors .windowFunctionNotAllowedError( " HAVING " )
28432843
28442844 // Aggregate with Having clause. This rule works with an unresolved Aggregate because
28452845 // a resolved Aggregate will not have Window Functions.
0 commit comments