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

    https://github.com/apache/spark/pull/14331#discussion_r72009802
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala
 ---
    @@ -110,6 +110,25 @@ case class CatalogTablePartition(
     
     
     /**
    + * A container for bucketing information.
    + * Bucketing is a technology for decomposing data sets into more 
manageable parts, and the number
    + * of buckets is fixed so it does not fluctuate with data.
    + *
    + * @param numBuckets number of buckets.
    + * @param bucketColumnNames the names of the columns that used to generate 
the bucket id.
    + * @param sortColumnNames the names of the columns that used to sort data 
in each bucket.
    + */
    +case class BucketSpec(
    +    numBuckets: Int,
    +    bucketColumnNames: Seq[String],
    +    sortColumnNames: Seq[String]) {
    +  if (numBuckets <= 0) {
    +    throw new AnalysisException(s"Expected positive number of buckets, but 
got `$numBuckets`.")
    +  }
    +}
    +
    +
    --- End diff --
    
    Nit: Remove extra newline.


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