File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2487,21 +2487,19 @@ object functions {
24872487 */
24882488 def current_timestamp (): Column = withExpr { CurrentTimestamp () }
24892489
2490- // scalastyle:off line.size.limit
24912490 /**
24922491 * Converts a date/timestamp/string to a value of string in the format specified by the date
24932492 * format given by the second argument.
24942493 *
2495- * A pattern could be for instance `dd.MM.yyyy` and could return a string like ' 18.03.1993'. All
2496- * pattern letters of [[ https://docs.oracle.com/javase/8/docs/api/ java/text/SimpleDateFormat.html java. text.SimpleDateFormat]] can be used.
2494+ * A pattern `dd.MM.yyyy` would return a string like ` 18.03.1993`.
2495+ * All pattern letters of ` java. text.SimpleDateFormat` can be used.
24972496 *
2498- * @note Use when ever possible specialized functions like [[year ]]. These benefit from a
2497+ * @note Use specialized functions like [[year ]] whenever possible as they benefit from a
24992498 * specialized implementation.
25002499 *
25012500 * @group datetime_funcs
25022501 * @since 1.5.0
25032502 */
2504- // scalastyle:on line.size.limit
25052503 def date_format (dateExpr : Column , format : String ): Column = withExpr {
25062504 DateFormatClass (dateExpr.expr, Literal (format))
25072505 }
You can’t perform that action at this time.
0 commit comments