ueshin commented on code in PR #48664:
URL: https://github.com/apache/spark/pull/48664#discussion_r1817452154
##########
sql/api/src/main/scala/org/apache/spark/sql/Column.scala:
##########
@@ -1382,6 +1382,17 @@ class Column(val node: ColumnNode) extends Logging {
*/
def over(): Column = over(Window.spec)
+ /**
+ * TODO: Add documentation
+ * @return
+ */
+ def outer(): Column = withOrigin {
+ node match {
+ case attr: UnresolvedAttribute if !attr.isMetadataColumn =>
+ Column(LazyOuterReference(attr.nameParts, attr.planId))
+ // TODO: other cases
Review Comment:
Is it ok to use metadata columns as outer?
Do we have other cases we can support `outer()`?
--
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]