HyukjinKwon commented on a change in pull request #32019:
URL: https://github.com/apache/spark/pull/32019#discussion_r605393073
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/TryCast.scala
##########
@@ -30,10 +30,12 @@ import org.apache.spark.sql.types.DataType
* session local timezone by an analyzer [[ResolveTimeZone]].
*/
@ExpressionDescription(
- usage = "_FUNC_(expr AS type) - Casts the value `expr` to the target data
type `type`. " +
- "This expression is identical to CAST with configuration
`spark.sql.ansi.enabled` as " +
- "true, except it returns NULL instead of raising an error. Note that the
behavior of this " +
- "expression doesn't depend on configuration `spark.sql.ansi.enabled`.",
+ usage = """
+ _FUNC_(expr AS type) - Casts the value `expr` to the target data type
`type`.
+ "This expression is identical to CAST with configuration
`spark.sql.ansi.enabled` as
+ "true, except it returns NULL instead of raising an error. Note that the
behavior of this
+ "expression doesn't depend on configuration `spark.sql.ansi.enabled`.
Review comment:
```suggestion
This expression is identical to CAST with configuration
`spark.sql.ansi.enabled` as
true, except it returns NULL instead of raising an error. Note that
the behavior of this
expression doesn't depend on configuration `spark.sql.ansi.enabled`.
```
--
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]