Github user gatorsmile commented on the pull request:

    https://github.com/apache/spark/pull/10891#issuecomment-174409423
  
    I am not a Hive expert. I just did a try in Hive 1.2.1:
    ```
    hive> CREATE TABLE user_info_bucketed(user_id BIGINT, firstname STRING, 
lastname STRING)
        > PARTITIONED BY(ds STRING)
        > CLUSTERED BY(ds, user_id) INTO 256 BUCKETS;
    FAILED: SemanticException [Error 10002]: Invalid column reference
    ```
    
    It sounds like Hive does not allow users use Partitioning columns in 
bucketing key. I think this is not an issue in Hive. However, this is not 
prohibited in our Spark SQL.  @rxin @cloud-fan 


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