Skip to content

Commit

Permalink
Fix incorrect examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyum committed May 24, 2018
1 parent 00c13cf commit b8b0c9d
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1533,14 +1533,14 @@ case class TruncDate(date: Expression, format: Expression)
""",
examples = """
Examples:
> SELECT _FUNC_('2015-03-05T09:32:05.359', 'YEAR');
2015-01-01T00:00:00
> SELECT _FUNC_('2015-03-05T09:32:05.359', 'MM');
2015-03-01T00:00:00
> SELECT _FUNC_('2015-03-05T09:32:05.359', 'DD');
2015-03-05T00:00:00
> SELECT _FUNC_('2015-03-05T09:32:05.359', 'HOUR');
2015-03-05T09:00:00
> SELECT _FUNC_('YEAR', '2015-03-05T09:32:05.359');
2015-01-01 00:00:00
> SELECT _FUNC_('MM', '2015-03-05T09:32:05.359');
2015-03-01 00:00:00
> SELECT _FUNC_('DD', '2015-03-05T09:32:05.359');
2015-03-05 00:00:00
> SELECT _FUNC_('HOUR', '2015-03-05T09:32:05.359');
2015-03-05 09:00:00
""",
since = "2.3.0")
// scalastyle:on line.size.limit
Expand Down

0 comments on commit b8b0c9d

Please sign in to comment.