diff options
author | Reynold Xin <rxin@databricks.com> | 2016-12-19 22:50:23 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-12-19 22:50:23 -0800 |
commit | 150d26cad435e48441859ff266183161be893fac (patch) | |
tree | 1ba76742762bf292d28eea417d349221829acffc | |
parent | f923c849e5b8f7e7aeafee59db598a9bf4970f50 (diff) | |
download | spark-150d26cad435e48441859ff266183161be893fac.tar.gz spark-150d26cad435e48441859ff266183161be893fac.tar.bz2 spark-150d26cad435e48441859ff266183161be893fac.zip |
Tiny style improvement.
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala | 5 |
1 files changed, 3 insertions, 2 deletions
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 9d28e2704b..d33f7dacf3 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 @@ -26,8 +26,8 @@ import org.apache.spark.sql.catalyst.TableIdentifier import org.apache.spark.sql.catalyst.analysis.UnresolvedRelation import org.apache.spark.sql.catalyst.catalog.{BucketSpec, CatalogTable, CatalogTableType} import org.apache.spark.sql.catalyst.plans.logical.InsertIntoTable -import org.apache.spark.sql.execution.command.{AlterTableRecoverPartitionsCommand, DDLUtils} -import org.apache.spark.sql.execution.datasources.{CreateTable, DataSource, HadoopFsRelation} +import org.apache.spark.sql.execution.command.DDLUtils +import org.apache.spark.sql.execution.datasources.{CreateTable, DataSource} import org.apache.spark.sql.types.StructType /** @@ -214,6 +214,7 @@ final class DataFrameWriter[T] private[sql](ds: Dataset[T]) { 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. |