Github user maropu commented on the issue:

    https://github.com/apache/spark/pull/18779
  
    @10110346 Thanks, I looked into this failure and I could easily fix this 
like: 
https://github.com/apache/spark/compare/master...maropu:SPARK-21580#diff-57b3d87be744b7d79a9beacf8e5e5eb2R2287.
 But, I feel it'd be good to fix this more simply.
    
    @viirya I quickly checked that I applied `SubstituteUnresolvedOrdinals` 
once though, I couldn't fix this because we have the chance that we apply 
Analyzer `batches`  again into an already-analyzed logical plan:
    ```
    // Apply Analyzer `batches` in the SQL statement to built `DataFrame`.
    scala> val df = sql("""select 3, 4, sum(b) from data group by 1, 2""")
    
    // Then, again apply Analyzer `batches` again to execute `show`
    scala> df.show
    ```


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