AS
Size: a a a
AS
DC
GE
DC
AS
GE
DC
DC
AS
AS
GE
DC
О
select toDateTime64('2020-05-05 20:20:12.123456', 6) - toStartOfInterval(toDateTime64('2020-05-05 20:20:12.123456', 6), INTERVAL 1 day)
DB::Exception: Illegal types DateTime64(6) and DateTime('Europe/Moscow') of arguments of function minus
DC
select toDateTime64('2020-05-05 20:20:12.123456', 6) - toStartOfInterval(toDateTime64('2020-05-05 20:20:12.123456', 6), INTERVAL 1 day)
DB::Exception: Illegal types DateTime64(6) and DateTime('Europe/Moscow') of arguments of function minus
О
DC
SELECT
now64() AS x,
toFloat64(x) AS y,
toUInt64(replace(toString(y), '.', '')) AS w,
toDateTime64(w / 1000, 3) AS z
┌───────────────────────x─┬──────────────y─┬─────────────w─┬───────────────────────z─┐
│ 2020-07-14 15:28:55.863 │ 1594740535.863 │ 1594740535863 │ 2020-07-14 15:28:55.863 │
└─────────────────────────┴────────────────┴───────────────┴─────────────────────────┘
О
О
GE
DC