From 2162bfbf28a844273fa29de95580eec6b709be8b Mon Sep 17 00:00:00 2001 From: Jacek Laskowski Date: Thu, 3 Nov 2016 21:21:30 +0100 Subject: [PATCH] [MINOR] Remove calculation of bucket spec when not expected --- .../src/main/scala/org/apache/spark/sql/DataFrameWriter.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala b/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala index f95362e292280..14cc690a8d881 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala @@ -209,11 +209,12 @@ final class DataFrameWriter[T] private[sql](ds: Dataset[T]) { df.sparkSession, className = source, partitionColumns = partitioningColumns.getOrElse(Nil), - bucketSpec = getBucketSpec, + bucketSpec = None, options = extraOptions.toMap) dataSource.write(mode, df) } + /** * Inserts the content of the [[DataFrame]] to the specified table. It requires that * the schema of the [[DataFrame]] is the same as the schema of the table.