Skip to content

Commit 41d88ad

Browse files
committed
Also revert the doc as well
1 parent ffa439d commit 41d88ad

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/sql-migration-guide.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ license: |
4040

4141
### DDL Statements
4242

43-
- In Spark 3.0, `CREATE TABLE` without a specific provider uses the value of `spark.sql.sources.default` as its provider. In Spark version 2.4 and below, it was Hive. To restore the behavior before Spark 3.0, you can set `spark.sql.legacy.createHiveTableByDefault.enabled` to `true`.
44-
4543
- In Spark 3.0, when inserting a value into a table column with a different data type, the type coercion is performed as per ANSI SQL standard. Certain unreasonable type conversions such as converting `string` to `int` and `double` to `boolean` are disallowed. A runtime exception is thrown if the value is out-of-range for the data type of the column. In Spark version 2.4 and below, type conversions during table insertion are allowed as long as they are valid `Cast`. When inserting an out-of-range value to an integral field, the low-order bits of the value is inserted(the same as Java/Scala numeric type casting). For example, if 257 is inserted to a field of byte type, the result is 1. The behavior is controlled by the option `spark.sql.storeAssignmentPolicy`, with a default value as "ANSI". Setting the option as "Legacy" restores the previous behavior.
4644

4745
- The `ADD JAR` command previously returned a result set with the single value 0. It now returns an empty result set.

docs/sql-ref-syntax-ddl-create-table-datasource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The `CREATE TABLE` statement defines a new table using a Data Source.
2828
```sql
2929
CREATE TABLE [ IF NOT EXISTS ] table_identifier
3030
[ ( col_name1 col_type1 [ COMMENT col_comment1 ], ... ) ]
31-
[ USING data_source ]
31+
USING data_source
3232
[ OPTIONS ( key1=val1, key2=val2, ... ) ]
3333
[ PARTITIONED BY ( col_name1, col_name2, ... ) ]
3434
[ CLUSTERED BY ( col_name3, col_name4, ... )
@@ -40,7 +40,7 @@ CREATE TABLE [ IF NOT EXISTS ] table_identifier
4040
[ AS select_statement ]
4141
```
4242

43-
Note that, the clauses between the USING clause and the AS SELECT clause can come in
43+
Note that, the clauses between the OPTIONS clause and the AS SELECT clause can come in
4444
as any order. For example, you can write COMMENT table_comment after TBLPROPERTIES.
4545

4646
### Parameters

0 commit comments

Comments
 (0)