[SPARK-23997][SQL][FOLLOWUP] Update exception message

## What changes were proposed in this pull request?

This PR is an follow-up PR of #21087 based on [a discussion thread](https://github.com/apache/spark/pull/21087#discussion_r211080067]. Since #21087 changed a condition of `if` statement, the message in an exception is not consistent of the current behavior.
This PR updates the exception message.

## How was this patch tested?

Existing UTs

Closes #22269 from kiszk/SPARK-23997-followup.

Authored-by: Kazuaki Ishizaki <ishizaki@jp.ibm.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
This commit is contained in:
Kazuaki Ishizaki 2018-08-30 11:21:40 -05:00 committed by Sean Owen
parent 3c67cb0b52
commit 9e0f9591af

View file

@ -178,8 +178,8 @@ case class BucketSpec(
if (numBuckets <= 0 || numBuckets > conf.bucketingMaxBuckets) {
throw new AnalysisException(
s"Number of buckets should be greater than 0 but less than bucketing.maxBuckets " +
s"(`${conf.bucketingMaxBuckets}`). Got `$numBuckets`")
s"Number of buckets should be greater than 0 but less than or equal to " +
s"bucketing.maxBuckets (`${conf.bucketingMaxBuckets}`). Got `$numBuckets`")
}
override def toString: String = {