Github user jinxing64 commented on the issue:

    https://github.com/apache/spark/pull/18866
  
    In current change:
    1. `ClusteredDistribution` becomes ClusteredDistribution(clustering: 
Seq[Expression], clustersOpt: Option[Int] = None, useHiveHash: Boolean = 
false)` -- a) number and  clusters can be specified, b) `useHiveHash` indicates 
whether Hive hash should be used for partitioning.
    2. `InsertIntoHiveTable` requires distribution 
`ClusteredDistribution(partitionAttributes ++ bucketColumns, 
Option(bucketSpec.numBuckets), useHiveHash = true)`. Thus to make sure one 
bucket has only one file.
    3. Partition id is not shown in name of bucket file, thus only bucket id 
decides the order of bucket file names.
    4. Write an empty file for empty bucket file.


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