Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Oct 8, 2023
1 parent b46cd99 commit debd6fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sql-ref-syntax-ddl-create-table-datasource.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ In general CREATE TABLE is creating a "pointer", and you need to make sure it po
existing. An exception is file source such as parquet, json. If you don't specify the LOCATION,
Spark will create a default table location for you.

For CREATE TABLE AS SELECT with LOCATION, Spark throws analysis exceptions if the given location exists.
If `spark.sql.legacy.allowNonEmptyLocationInCTAS` is set to true, Spark overwrites the underlying
data source with the data of the
For CREATE TABLE AS SELECT with LOCATION, Spark throws analysis exceptions if the given location
exists as a non-empty directory. If `spark.sql.legacy.allowNonEmptyLocationInCTAS` is set to true,
Spark overwrites the underlying data source with the data of the
input query, to make sure the table gets created contains exactly the same data as the input query.

### Examples
Expand Down

0 comments on commit debd6fa

Please sign in to comment.