2021-03-25 21:00:18 +00:00
<test max_ignored_relative_change= "0.3" >
2017-10-29 00:51:40 +00:00
<substitutions >
<substitution >
2019-07-27 21:17:44 +00:00
<name > datetime_transform</name>
2017-10-29 00:51:40 +00:00
<values >
<value > toSecond</value>
<value > toMinute</value>
<value > toHour</value>
<value > toDayOfWeek</value>
<value > toDayOfMonth</value>
2018-09-19 20:48:25 +00:00
<value > toDayOfYear</value>
2017-10-29 00:51:40 +00:00
<value > toMonth</value>
2018-09-19 20:48:25 +00:00
<value > toQuarter</value>
2017-10-29 00:51:40 +00:00
<value > toYear</value>
2018-09-19 20:48:25 +00:00
<value > toISOWeek</value>
<value > toISOYear</value>
2017-10-29 00:51:40 +00:00
<value > toStartOfMinute</value>
<value > toStartOfFiveMinute</value>
2017-12-22 10:36:39 +00:00
<value > toStartOfFifteenMinutes</value>
2017-10-29 00:51:40 +00:00
<value > toStartOfHour</value>
<value > toStartOfDay</value>
<value > toDate</value>
<value > toMonday</value>
<value > toStartOfMonth</value>
<value > toStartOfQuarter</value>
2018-09-19 20:48:25 +00:00
<value > toStartOfYear</value>
<value > toStartOfISOYear</value>
2017-10-29 00:51:40 +00:00
<value > toTime</value>
<value > toRelativeYearNum</value>
<value > toRelativeMonthNum</value>
<value > toRelativeWeekNum</value>
<value > toRelativeDayNum</value>
<value > toRelativeHourNum</value>
<value > toRelativeMinuteNum</value>
<value > toRelativeSecondNum</value>
<value > toYYYYMM</value>
<value > toYYYYMMDD</value>
<value > toYYYYMMDDhhmmss</value>
More performance test for Date and DateTime
Added cases for:
* binary operations: -,+,>,>=,<,<=,==,!=
* previously-missing functions: timeSlot, toRelativeQuarterNum, toStartOfTenMinutes, toUnixTimestamp, addYears (and alike).
2019-10-15 12:18:15 +00:00
<value > timeSlot</value>
<value > toRelativeQuarterNum</value>
<value > toStartOfTenMinutes</value>
<value > toUnixTimestamp</value>
2017-10-29 00:51:40 +00:00
</values>
</substitution>
<substitution >
2019-07-27 21:17:44 +00:00
<name > date_transform</name>
2017-10-29 00:51:40 +00:00
<values >
<value > toDayOfWeek</value>
<value > toDayOfMonth</value>
2018-09-19 20:48:25 +00:00
<value > toDayOfYear</value>
2017-10-29 00:51:40 +00:00
<value > toMonth</value>
2018-09-19 20:48:25 +00:00
<value > toQuarter</value>
2017-10-29 00:51:40 +00:00
<value > toYear</value>
2018-09-19 20:48:25 +00:00
<value > toISOWeek</value>
<value > toISOYear</value>
2017-10-29 00:51:40 +00:00
<value > toDate</value>
<value > toMonday</value>
More performance test for Date and DateTime
Added cases for:
* binary operations: -,+,>,>=,<,<=,==,!=
* previously-missing functions: timeSlot, toRelativeQuarterNum, toStartOfTenMinutes, toUnixTimestamp, addYears (and alike).
2019-10-15 12:18:15 +00:00
<value > toStartOfDay</value>
2017-10-29 00:51:40 +00:00
<value > toStartOfMonth</value>
<value > toStartOfQuarter</value>
2018-09-19 20:48:25 +00:00
<value > toStartOfYear</value>
<value > toStartOfISOYear</value>
2017-10-29 00:51:40 +00:00
<value > toRelativeYearNum</value>
<value > toRelativeMonthNum</value>
<value > toRelativeWeekNum</value>
<value > toRelativeDayNum</value>
<value > toYYYYMM</value>
<value > toYYYYMMDD</value>
<value > toYYYYMMDDhhmmss</value>
More performance test for Date and DateTime
Added cases for:
* binary operations: -,+,>,>=,<,<=,==,!=
* previously-missing functions: timeSlot, toRelativeQuarterNum, toStartOfTenMinutes, toUnixTimestamp, addYears (and alike).
2019-10-15 12:18:15 +00:00
<value > toRelativeQuarterNum</value>
2017-10-29 00:51:40 +00:00
</values>
More performance test for Date and DateTime
Added cases for:
* binary operations: -,+,>,>=,<,<=,==,!=
* previously-missing functions: timeSlot, toRelativeQuarterNum, toStartOfTenMinutes, toUnixTimestamp, addYears (and alike).
2019-10-15 12:18:15 +00:00
</substitution>
<substitution >
<name > time_zone</name>
<values >
2017-10-29 00:51:40 +00:00
<value > UTC</value>
<value > Europe/Moscow</value>
<value > Asia/Kolkata</value>
More performance test for Date and DateTime
Added cases for:
* binary operations: -,+,>,>=,<,<=,==,!=
* previously-missing functions: timeSlot, toRelativeQuarterNum, toStartOfTenMinutes, toUnixTimestamp, addYears (and alike).
2019-10-15 12:18:15 +00:00
</values>
</substitution>
<substitution >
<name > binary_function</name>
<values >
<value > lessOrEquals</value>
<value > less</value>
<value > greater</value>
<value > greaterOrEquals</value>
<value > equals</value>
<value > notEquals</value>
<value > plus</value>
<value > minus</value>
<value > addDays</value>
<value > addHours</value>
<value > addMinutes</value>
<value > addMonths</value>
<value > addQuarters</value>
<value > addSeconds</value>
<value > addWeeks</value>
<value > addYears</value>
<value > subtractDays</value>
<value > subtractHours</value>
<value > subtractMinutes</value>
<value > subtractMonths</value>
<value > subtractQuarters</value>
<value > subtractSeconds</value>
<value > subtractWeeks</value>
<value > subtractYears</value>
</values>
</substitution>
2017-10-29 00:51:40 +00:00
</substitutions>
2021-03-18 23:19:58 +00:00
<query > SELECT count() FROM numbers(50000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {datetime_transform}(t, '{time_zone}'))</query>
<query > SELECT count() FROM numbers(50000000) WHERE NOT ignore(toDate('2017-01-01') + number % 1000 + rand() % 10 AS t, {date_transform}(t))</query>
<query > SELECT count() FROM numbers(50000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {binary_function}(t, 1))</query>
<query > SELECT count() FROM numbers(50000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, toStartOfInterval(t, INTERVAL 1 month))</query>
<query > SELECT count() FROM numbers(50000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, date_trunc('month', t))</query>
2020-02-28 16:56:34 +00:00
</test>