cloud-fan commented on a change in pull request #31034:
URL: https://github.com/apache/spark/pull/31034#discussion_r556372999
##########
File path: docs/sql-migration-guide.md
##########
@@ -32,6 +32,8 @@ license: |
- In Spark 3.2, script transform default FIELD DELIMIT is `\u0001` for no
serde mode. In Spark 3.1 or earlier, the default FIELD DELIMIT is `\t`.
+ - In Spark 3.2, the auto-generated `Cast` which is introduced by Spark will
be stripped. E.g., The default column name of `SELECT floor(1)` will be
`FLOOR(1)` instead of `FLOOR(CAST(1 AS DOUBLE))`.
Review comment:
let's be more clear:
```
.. the auto-generated `Cast` (such as those added by type coercion rules)
will be stripped when
generating column alias names. E.g., `sql("SELECT floor(1)").columns` will
be `FLOOR(1)`
instead of `FLOOR(CAST(1 AS DOUBLE))`
```
----------------------------------------------------------------
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]