mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Applying feedback.
This commit is contained in:
parent
a05ca50b01
commit
cefdbfb7c3
@ -1686,17 +1686,17 @@ age('unit', startdate, enddate, [timezone])
|
|||||||
- `unit` — The type of interval for result. [String](../../sql-reference/data-types/string.md).
|
- `unit` — The type of interval for result. [String](../../sql-reference/data-types/string.md).
|
||||||
Possible values:
|
Possible values:
|
||||||
|
|
||||||
- `nanosecond` `nanoseconds` `ns`
|
- `nanosecond`, `nanoseconds`, `ns`
|
||||||
- `microsecond` `microseconds` `us` `u`
|
- `microsecond`, `microseconds`, `us`, `u`
|
||||||
- `millisecond` `milliseconds` `ms`
|
- `millisecond`, `milliseconds`, `ms`
|
||||||
- `second` `seconds` `ss` `s`
|
- `second`, `seconds`, `ss`, `s`
|
||||||
- `minute` `minutes` `mi` `n`
|
- `minute`, `minutes`, `mi`, `n`
|
||||||
- `hour` `hours` `hh` `h`
|
- `hour`, `hours`, `hh`, `h`
|
||||||
- `day` `days` `dd` `d`
|
- `day`, `days`, `dd`, `d`
|
||||||
- `week` `weeks` `wk` `ww`
|
- `week`, `weeks`, `wk`, `ww`
|
||||||
- `month` `months` `mm` `m`
|
- `month`, `months`, `mm`, `m`
|
||||||
- `quarter` `quarters` `qq` `q`
|
- `quarter`, `quarters`, `qq`, `q`
|
||||||
- `year` `years` `yyyy` `yy`
|
- `year`, `years`, `yyyy`, `yy`
|
||||||
|
|
||||||
- `startdate` — The first time value to subtract (the subtrahend). [Date](../../sql-reference/data-types/date.md), [Date32](../../sql-reference/data-types/date32.md), [DateTime](../../sql-reference/data-types/datetime.md) or [DateTime64](../../sql-reference/data-types/datetime64.md).
|
- `startdate` — The first time value to subtract (the subtrahend). [Date](../../sql-reference/data-types/date.md), [Date32](../../sql-reference/data-types/date32.md), [DateTime](../../sql-reference/data-types/datetime.md) or [DateTime64](../../sql-reference/data-types/datetime64.md).
|
||||||
|
|
||||||
@ -1764,17 +1764,17 @@ Aliases: `dateDiff`, `DATE_DIFF`, `timestampDiff`, `timestamp_diff`, `TIMESTAMP_
|
|||||||
- `unit` — The type of interval for result. [String](../../sql-reference/data-types/string.md).
|
- `unit` — The type of interval for result. [String](../../sql-reference/data-types/string.md).
|
||||||
Possible values:
|
Possible values:
|
||||||
|
|
||||||
- `nanosecond` `nanoseconds` `ns`
|
- `nanosecond`, `nanoseconds`, `ns`
|
||||||
- `microsecond` `microseconds` `us` `u`
|
- `microsecond`, `microseconds`, `us`, `u`
|
||||||
- `millisecond` `milliseconds` `ms`
|
- `millisecond`, `milliseconds`, `ms`
|
||||||
- `second` `seconds` `ss` `s`
|
- `second`, `seconds`, `ss`, `s`
|
||||||
- `minute` `minutes` `mi` `n`
|
- `minute`, `minutes`, `mi`, `n`
|
||||||
- `hour` `hours` `hh` `h`
|
- `hour`, `hours`, `hh`, `h`
|
||||||
- `day` `days` `dd` `d`
|
- `day`, `days`, `dd`, `d`
|
||||||
- `week` `weeks` `wk` `ww`
|
- `week`, `weeks`, `wk`, `ww`
|
||||||
- `month` `months` `mm` `m`
|
- `month`, `months`, `mm`, `m`
|
||||||
- `quarter` `quarters` `qq` `q`
|
- `quarter`, `quarters`, `qq`, `q`
|
||||||
- `year` `years` `yyyy` `yy`
|
- `year`, `years`, `yyyy`, `yy`
|
||||||
|
|
||||||
- `startdate` — The first time value to subtract (the subtrahend). [Date](../../sql-reference/data-types/date.md), [Date32](../../sql-reference/data-types/date32.md), [DateTime](../../sql-reference/data-types/datetime.md) or [DateTime64](../../sql-reference/data-types/datetime64.md).
|
- `startdate` — The first time value to subtract (the subtrahend). [Date](../../sql-reference/data-types/date.md), [Date32](../../sql-reference/data-types/date32.md), [DateTime](../../sql-reference/data-types/datetime.md) or [DateTime64](../../sql-reference/data-types/datetime64.md).
|
||||||
|
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
|
|
||||||
static constexpr auto nanosecond_multiplier = 1000000000;
|
static constexpr auto millisecond_multiplier = 1'000;
|
||||||
static constexpr auto microsecond_multiplier = 1000000;
|
static constexpr auto microsecond_multiplier = 1'000'000;
|
||||||
static constexpr auto millisecond_multiplier = 1000;
|
static constexpr auto nanosecond_multiplier = 1'000'000'000;
|
||||||
|
|
||||||
static constexpr FormatSettings::DateTimeOverflowBehavior default_date_time_overflow_behavior = FormatSettings::DateTimeOverflowBehavior::Ignore;
|
static constexpr FormatSettings::DateTimeOverflowBehavior default_date_time_overflow_behavior = FormatSettings::DateTimeOverflowBehavior::Ignore;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user