Skip to content

Commit e60ec43

Browse files
committed
Revise docs according to the comments.
1 parent da64105 commit e60ec43

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/sql-programming-guide.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,12 +1413,13 @@ options.
14131413
- Dataset and DataFrame API `explode` has been deprecated, alternatively, use `functions.explode()` with `select` or `flatMap`
14141414
- Dataset and DataFrame API `registerTempTable` has been deprecated and replaced by `createOrReplaceTempView`
14151415

1416-
- Changes to `CREATE TABLE ... LOCATION` behavior.
1416+
- Changes to `CREATE TABLE ... LOCATION` behavior for Hive tables.
14171417
- From Spark 2.0, `CREATE TABLE ... LOCATION` is equivalent to `CREATE EXTERNAL TABLE ... LOCATION`
14181418
in order to prevent accidental dropping the existing data in the user-provided locations.
1419-
Please see [SPARK-15276](https://issues.apache.org/jira/browse/SPARK-15276) for details.
1419+
That means, a Hive table created in Spark SQL with the user-specified location is always a Hive external table.
1420+
Dropping external tables will not remove the data. Users are not allowed to specify the location for Hive managed tables.
1421+
Note that this is different from the Hive behavior.
14201422
- As a result, `DROP TABLE` statements on those tables will not remove the data.
1421-
Note that this is different than the Hive behavior.
14221423

14231424
## Upgrading From Spark SQL 1.5 to 1.6
14241425

0 commit comments

Comments
 (0)