Github user sarutak commented on a diff in the pull request: https://github.com/apache/spark/pull/11301#discussion_r55935199 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala --- @@ -418,6 +419,13 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]] extends Product { override def toString: String = treeString + def toOriginString: String = + if (this.origin.callSite.isDefined && !this.isInstanceOf[BoundReference]) { --- End diff -- `AttributeReference` which is created with expression parsing is transformed into `BoundReference` so we can't generate comment properly when the query is like as follows. ``` SELECT col1, col2 FROM TBL WHERE ... ``` In the example above, col1 and col2 is parsed into `BoundReference` finally.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org