"As an exception, if converting from UInt32, Int32, UInt64, or Int64 type numbers to Date, and if the number is greater than or equal to 65536, the number is interpreted as a Unix timestamp (and not as the number of days) and is rounded to the date."
But this not working while inserting.
CREATE TABLE test (date Date, unix_ts DateTime) ENGINE = MergeTree(date, (unix_ts), 8192);
INSERT INTO test VALUES (1464364942,1464364942);
And I got:
SELECT *
FROM test
┌───────date─┬─────────────unix_ts─┐
│ 0000-00-00 │ 2016-05-27 09:02:22 │
└────────────┴─────────────────────┘
Of course if I inserting unix days - it works.