Github user rxin commented on the issue:
https://github.com/apache/spark/pull/15758
where's the assert?
```
private def getBucketSpec: Option[BucketSpec] = {
if (sortColumnNames.isDefined) {
require(numBuckets.isDefined, "sortBy must be used together with
bucketBy")
}
for {
n <- numBuckets
} yield {
require(n > 0 && n < 100000, "Bucket number must be greater than 0
and less than 100000.")
// partitionBy columns cannot be used in bucketBy
if (normalizedParCols.nonEmpty &&
normalizedBucketColNames.get.toSet.intersect(normalizedParCols.get.toSet).nonEmpty)
{
throw new AnalysisException(
s"bucketBy columns '${bucketColumnNames.get.mkString(", ")}'
should not be part of " +
s"partitionBy columns '${partitioningColumns.get.mkString(",
")}'")
}
BucketSpec(n, normalizedBucketColNames.get,
normalizedSortColNames.getOrElse(Nil))
}
}
```
---
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]