Github user maropu commented on the issue:

    https://github.com/apache/spark/pull/17191
  
    Ah, I see. In a basic stance, I think we should do the same behaviour with 
existing databases. You're right and `select k1 as kx from t group by kx` 
should fail;
    ```
    // PostgreSQL
     Column |  Type   | Modifiers
    --------+---------+-----------
     key    | integer |
     value  | integer |
    
    postgres=# select key AS k, k FROM t;
    ERROR:  column "k" does not exist at character 18
    ```
    Anyway, I agree with your suggestion; we should make PRs as much small as 
possible, and so I reconsider this pr again to fix the point in the description.


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