aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc-sahuja <sahuja@cloudera.com>2016-12-06 19:03:23 -0800
committerReynold Xin <rxin@databricks.com>2016-12-06 19:03:23 -0800
commit01c7c6b884244ac1a57e332c3aea669488ad9dc0 (patch)
treeb05f0091ba0cce806959dd19f01d3dc6001fd0ed
parent539bb3cf9573be5cd86e7e6502523ce89c0de170 (diff)
downloadspark-01c7c6b884244ac1a57e332c3aea669488ad9dc0.tar.gz
spark-01c7c6b884244ac1a57e332c3aea669488ad9dc0.tar.bz2
spark-01c7c6b884244ac1a57e332c3aea669488ad9dc0.zip
Update Spark documentation to provide information on how to create External Table
## What changes were proposed in this pull request? Although, currently, the saveAsTable does not provide an API to save the table as an external table from a DataFrame, we can achieve this functionality by using options on DataFrameWriter where the key for the map is the String: "path" and the value is another String which is the location of the external table itself. This can be provided before the call to saveAsTable is performed. ## How was this patch tested? Documentation was reviewed for formatting and content after the push was performed on the branch. ![updated documentation](https://cloud.githubusercontent.com/assets/15376052/20953147/4cfcf308-bc57-11e6-807c-e21fb774a760.PNG) Author: c-sahuja <sahuja@cloudera.com> Closes #16185 from c-sahuja/createExternalTable.
-rw-r--r--docs/sql-programming-guide.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index e59c327915..6287e2be95 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -526,6 +526,11 @@ By default `saveAsTable` will create a "managed table", meaning that the locatio
be controlled by the metastore. Managed tables will also have their data deleted automatically
when a table is dropped.
+Currently, `saveAsTable` does not expose an API supporting the creation of an "External table" from a `DataFrame`,
+however, this functionality can be achieved by providing a `path` option to the `DataFrameWriter` with `path` as the key
+and location of the external table as its value (String) when saving the table with `saveAsTable`. When an External table
+is dropped only its metadata is removed.
+
## Parquet Files
[Parquet](http://parquet.io) is a columnar format that is supported by many other data processing systems.