Github user ueshin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1266#discussion_r14543737
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
 ---
    @@ -46,10 +46,22 @@ case class Generate(
         child: LogicalPlan)
       extends UnaryNode {
     
    -  protected def generatorOutput: Seq[Attribute] =
    -    alias
    +  protected def generatorOutput: Seq[Attribute] = {
    +    val output = alias
           .map(a => generator.output.map(_.withQualifiers(a :: Nil)))
           .getOrElse(generator.output)
    +    if (join && outer) {
    +      output.map {
    +        case attr if !attr.resolved => attr
    +        case attr if !attr.nullable =>
    +          AttributeReference(
    +            attr.name, attr.dataType, nullable = true)(attr.exprId, 
attr.qualifiers)
    +        case attr => attr
    --- End diff --
    
    Ah, I see.
    It is the same as `withQualifiers`, right?


---
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.
---

Reply via email to