diff --git a/tests/queries/0_stateless/01347_partition_date_vs_datetime.reference b/tests/queries/0_stateless/01347_partition_date_vs_datetime.reference new file mode 100644 index 00000000000..1e9272b6511 --- /dev/null +++ b/tests/queries/0_stateless/01347_partition_date_vs_datetime.reference @@ -0,0 +1 @@ +2019-04-26 00:00:00 diff --git a/tests/queries/0_stateless/01347_partition_date_vs_datetime.sql b/tests/queries/0_stateless/01347_partition_date_vs_datetime.sql new file mode 100644 index 00000000000..8cf6144f599 --- /dev/null +++ b/tests/queries/0_stateless/01347_partition_date_vs_datetime.sql @@ -0,0 +1,5 @@ +DROP TABLE IF EXISTS test_datetime; +CREATE TABLE test_datetime (time DateTime) ENGINE=MergeTree PARTITION BY time ORDER BY time; +INSERT INTO test_datetime (time) VALUES (toDate(18012)); +SELECT * FROM test_datetime WHERE time=toDate(18012); +DROP TABLE test_datetime;