Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct style of usage content
  • Loading branch information
TJX2014 committed May 22, 2020
commit 62bf8b51701cc4287604f146f0ec7688d04876eb
Original file line number Diff line number Diff line change
Expand Up @@ -440,16 +440,17 @@ case class SecondsToTimestamp(child: Expression)
override def prettyName: String = "timestamp_seconds"
}

// scalastyle:off line.size.limit
@ExpressionDescription(
usage = "_FUNC_(milliseconds) - " +
"Creates timestamp from the number of milliseconds since UTC epoch.",
usage = "_FUNC_(milliseconds) - Creates timestamp from the number of milliseconds since UTC epoch.",
examples = """
Examples:
> SELECT _FUNC_(1230219000123);
2008-12-25 07:30:00.123
""",
group = "datetime_funcs",
since = "3.1.0")
// scalastyle:on line.size.limit
case class MilliSecondsToTimestamp(child: Expression)
extends NumberToTimestampBase {

Expand All @@ -458,16 +459,17 @@ case class MilliSecondsToTimestamp(child: Expression)
override def prettyName: String = "timestamp_milliseconds"
}

// scalastyle:off line.size.limit
@ExpressionDescription(
usage = "_FUNC_(microseconds) - " +
"Creates timestamp from the number of microseconds since UTC epoch.",
usage = "_FUNC_(microseconds) - Creates timestamp from the number of microseconds since UTC epoch.",
examples = """
Examples:
> SELECT _FUNC_(1230219000123123);
2008-12-25 07:30:00.123123
""",
group = "datetime_funcs",
since = "3.1.0")
// scalastyle:on line.size.limit
case class MicroSecondsToTimestamp(child: Expression)
extends NumberToTimestampBase {

Expand Down