Skip to content

Commit

Permalink
[SPARK-33641][SQL][DOC][FOLLOW-UP] Add migration guide for CHAR VARCH…
Browse files Browse the repository at this point in the history
…AR types
  • Loading branch information
yaooqinn committed Dec 7, 2020
1 parent 898172b commit 3cb8724
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/sql-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ license: |

- In Spark 3.1, CHAR/CHARACTER and VARCHAR types become individual types from string. By default, they can only be used in table schema, not functions/operators. To restore the behavior before Spark 3.1, where treats them as string with length parameter simply ignored, you can set `spark.sql.legacy.charVarcharAsString` to `true`.


## Upgrading from Spark SQL 3.0 to 3.0.1

- In Spark 3.0, JSON datasource and JSON function `schema_of_json` infer TimestampType from string values if they match to the pattern defined by the JSON option `timestampFormat`. Since version 3.0.1, the timestamp type inference is disabled by default. Set the JSON option `inferTimestamp` to `true` to enable such type inference.
Expand Down

0 comments on commit 3cb8724

Please sign in to comment.