Github user maropu commented on the issue:

    https://github.com/apache/spark/pull/17191
  
    @cloud-fan In the mixed case, it seems PotgreSQL and MySQL support the 
syntax;
    ```
    
    // PostgreSQL v9.5
    postgres=# \d t2
          Table "public.t2"
     Column |  Type   | Modifiers 
    --------+---------+-----------
     gkey1  | integer | 
     gkey2  | integer | 
     value  | integer | 
    
    postgres=# select gkey1 AS key1, gkey2, count(value) from t2 group by key1, 
2;
     key1 | gkey2 | count 
    ------+-------+-------
        1 |     1 |     1
    (1 row)
    
    // MySQL v5.7.13 
    mysql> SHOW COLUMNS FROM t2;
    +-------+---------+------+-----+---------+-------+
    | Field | Type    | Null | Key | Default | Extra |
    +-------+---------+------+-----+---------+-------+
    | gkey1 | int(11) | YES  |     | NULL    |       |
    | gkey2 | int(11) | YES  |     | NULL    |       |
    | value | int(11) | YES  |     | NULL    |       |
    +-------+---------+------+-----+---------+-------+
    3 rows in set (0.00 sec)
    
    mysql> select gkey1 AS key1, gkey2, count(value) from t2 group by key1, 2;
    +------+-------+--------------+
    | key1 | gkey2 | count(value) |
    +------+-------+--------------+
    |    1 |     1 |            1 |
    +------+-------+--------------+
    1 row in set (0.00 sec)
    ```


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to