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

    https://github.com/apache/spark/pull/17810#discussion_r114066762
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/GeneratorFunctionSuite.scala ---
    @@ -91,7 +91,7 @@ class GeneratorFunctionSuite extends QueryTest with 
SharedSQLContext {
         val df = Seq((1, Seq(1, 2, 3)), (2, Seq())).toDF("a", "intList")
         checkAnswer(
           df.select(explode_outer('intList)),
    -      Row(1) :: Row(2) :: Row(3) :: Nil)
    +      Row(1) :: Row(2) :: Row(3) :: Row(null) :: Nil)
    --- End diff --
    
    So I think we should move away from that definition, and make `outer` 
independent from `join`. The reason for this is that I think it is super 
confusing that the following queries produce different results:
    ```
    df.select($"k", outer_explode($"v")) 
    df.select(outer_explode($"v")) 
    ```
    If you do not want the outer semantic, then just use a regular generator.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to