Github user zero323 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17938#discussion_r116029940
  
    --- Diff: docs/sql-programming-guide.md ---
    @@ -581,6 +581,46 @@ Starting from Spark 2.1, persistent datasource tables 
have per-partition metadat
     
     Note that partition information is not gathered by default when creating 
external datasource tables (those with a `path` option). To sync the partition 
information in the metastore, you can invoke `MSCK REPAIR TABLE`.
     
    +### Bucketing, Sorting and Partitioning
    --- End diff --
    
    @tejasapatil 
    
    > There could be multiple possible orderings of `partitionBy,` `bucketBy` 
and `sortBy` calls. Not all of them are supported, not all of them would 
produce correct outputs.
    
    Shouldn't the output be the same no matter the order? `sortBy` is not 
applicable for `partitionBy` and takes precedence over  `bucketBy`, if both are 
present. This is Hive's behaviour if I am not mistaken, and at first glance 
Spark is doing the same thing. It there any gotcha here?


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