Skip to content

Commit 1e43dff

Browse files
committed
Follow up of SPARK-16033. Improve the error message (#13747 (comment)).
1 parent 03aea3c commit 1e43dff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ final class DataFrameWriter[T] private[sql](ds: Dataset[T]) {
245245
if (partitioningColumns.isDefined) {
246246
throw new AnalysisException(
247247
"insertInto() can't be used together with partitionBy(). " +
248-
"Partition columns are defined by the table into which is being inserted."
248+
"Partition columns have already be defined for the table. " +
249+
"It is not necessary to use partitionBy()."
249250
)
250251
}
251252

0 commit comments

Comments
 (0)