allisonwang-db commented on a change in pull request #32958:
URL: https://github.com/apache/spark/pull/32958#discussion_r655928725
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
##########
@@ -1485,12 +1485,8 @@ private[spark] object QueryCompilationErrors {
}
def cannotResolveColumnNameAmongAttributesError(
- lattr: Attribute, rightOutputAttrs: Seq[Attribute]): Throwable = {
- new AnalysisException(
- s"""
- |Cannot resolve column name "${lattr.name}" among
- |(${rightOutputAttrs.map(_.name).mkString(", ")})
- """.stripMargin.replaceAll("\n", " "))
+ colName: String, fieldNames: String): Throwable = {
+ new AnalysisException(s"""Cannot resolve column name "$colName" among
($fieldNames)""")
Review comment:
nit: use " instead of """
--
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]