Github user yhuai commented on the issue:
    Also, another good test for this is 
    val df = sql("select 0 as id")
    val df2 = sql("""select * from foo group by id""")
    Without this fix, you will have an exception like 
`org.apache.spark.sql.AnalysisException: GROUP BY position 0 is not in select 
list (valid range is [1, 1]); line 1 pos 7`.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to