Skip to content

Commit f2552ce

Browse files
committed
not sure if possible to disable, so testing the doc generation by removing time for now
1 parent b868e86 commit f2552ce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3451,6 +3451,7 @@ object DatePartExpressionBuilder extends ExpressionBuilder {
34513451
- "SECOND", ("S", "SEC", "SECONDS", "SECS") - the seconds field, including fractional parts up to micro second precision. Returns a DECIMAL(8, 6) precision value.
34523452
* source - a date or timestamp or time or interval column from where `field` should be extracted
34533453
""",
3454+
// TODO: return examples for TIME after it has been enabled.
34543455
examples = """
34553456
Examples:
34563457
> SELECT _FUNC_(YEAR FROM TIMESTAMP '2019-08-12 01:00:00.123456');
@@ -3469,12 +3470,6 @@ object DatePartExpressionBuilder extends ExpressionBuilder {
34693470
11
34703471
> SELECT _FUNC_(MINUTE FROM INTERVAL '123 23:55:59.002001' DAY TO SECOND);
34713472
55
3472-
> SELECT _FUNC_(HOUR FROM time '09:08:01.000001');
3473-
9
3474-
> SELECT _FUNC_(MINUTE FROM time '09:08:01.000001');
3475-
8
3476-
> SELECT _FUNC_(SECOND FROM time '09:08:01.000001');
3477-
1.000001
34783473
""",
34793474
note = """
34803475
The _FUNC_ function is equivalent to `date_part(field, source)`.

0 commit comments

Comments
 (0)