cloud-fan commented on a change in pull request #29328:
URL: https://github.com/apache/spark/pull/29328#discussion_r468323149
##########
File path: docs/sql-migration-guide.md
##########
@@ -36,6 +36,8 @@ license: |
- In Spark 3.1, NULL elements of structures, arrays and maps are converted
to "null" in casting them to strings. In Spark 3.0 or earlier, NULL elements
are converted to empty strings. To restore the behavior before Spark 3.1, you
can set `spark.sql.legacy.castComplexTypesToString.enabled` to `true`.
+ - In Spark 3.1, when loading a dataframe, `path` option cannot coexist with
`load()`'s path parameters. For example,
`spark.read.format("csv").option("path", "/tmp").load("/tmp2")` or
`spark.read.option("path", "/tmp").csv("/tmp2")` will throw
`org.apache.spark.sql.AnalysisException`.
Review comment:
Let's also mention the legacy behavior in 3.0 and below.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]