Skip to content
Closed
Prev Previous commit
Next Next commit
Fix comments from reviewers.
  • Loading branch information
rdblue committed Aug 30, 2019
commit 6a5250932acfb4e247aaee6ab1b6940a7cc3b377
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import org.apache.spark.sql.types.{DataType, IntegerType}
* These expressions are used to pass transformations from the DataFrame API:
*
* {{{
* df.writeTo("catalog.db.table").partitionBy($"category", days($"timestamp")).create()
* df.writeTo("catalog.db.table").partitionedBy($"category", days($"timestamp")).create()
* }}}
*/
abstract class PartitionTransformExpression extends Expression with Unevaluable {
Expand Down
2 changes: 1 addition & 1 deletion sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3213,7 +3213,7 @@ class Dataset[T] private[sql](
// TODO: streaming could be adapted to use this interface
if (isStreaming) {
logicalPlan.failAnalysis(
"'write' can not be called on streaming Dataset/DataFrame")
"'writeTo' can not be called on streaming Dataset/DataFrame")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be good to add: use 'writeStream' instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't include this because I'd rather not have the v2 API recommend using the v1 API. That seems confusing to me.

}
new DataFrameWriterV2[T](table, this)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import org.apache.spark.util.Utils
* @groupname window_funcs Window functions
* @groupname string_funcs String functions
* @groupname collection_funcs Collection functions
* @groupname partition_transforms Partition transform functions
* @groupname Ungrouped Support functions for DataFrames
* @since 1.3.0
*/
Expand Down