2023-09-12 23:04:26 +00:00
|
|
|
SET session_timezone = 'UTC';
|
|
|
|
|
2023-09-14 13:58:00 +00:00
|
|
|
SELECT ADDDATE(materialize('2022-05-07'::Date), INTERVAL 5 MINUTE);
|
2023-09-12 23:04:26 +00:00
|
|
|
|
2023-09-12 16:45:02 +00:00
|
|
|
SELECT addDate('2022-05-07'::Date, INTERVAL 5 MINUTE);
|
|
|
|
SELECT addDate('2022-05-07'::Date32, INTERVAL 5 MINUTE);
|
|
|
|
SELECT addDate('2022-05-07'::DateTime, INTERVAL 5 MINUTE);
|
|
|
|
SELECT addDate('2022-05-07'::DateTime64, INTERVAL 5 MINUTE);
|
2023-10-23 17:25:46 +00:00
|
|
|
SELECT addDate('2022-05-07', INTERVAL 5 MINUTE);
|
2023-09-12 16:45:02 +00:00
|
|
|
|
|
|
|
SELECT addDate('2022-05-07'::Date); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|
|
|
|
SELECT addDate('2022-05-07'::Date, INTERVAL 5 MINUTE, 5); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|
|
|
|
SELECT addDate('2022-05-07'::Date, 10); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
2023-10-23 17:25:46 +00:00
|
|
|
SELECT addDate(1.2, INTERVAL 5 MINUTE); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
2023-09-12 16:45:02 +00:00
|
|
|
|
|
|
|
SELECT '---';
|
|
|
|
|
2023-09-14 13:58:00 +00:00
|
|
|
SELECT SUBDATE(materialize('2022-05-07'::Date), INTERVAL 5 MINUTE);
|
2023-09-12 23:04:26 +00:00
|
|
|
|
2023-09-12 16:45:02 +00:00
|
|
|
SELECT subDate('2022-05-07'::Date, INTERVAL 5 MINUTE);
|
|
|
|
SELECT subDate('2022-05-07'::Date32, INTERVAL 5 MINUTE);
|
|
|
|
SELECT subDate('2022-05-07'::DateTime, INTERVAL 5 MINUTE);
|
|
|
|
SELECT subDate('2022-05-07'::DateTime64, INTERVAL 5 MINUTE);
|
2023-10-23 17:25:46 +00:00
|
|
|
SELECT subDate('2022-05-07'::String, INTERVAL 5 MINUTE);
|
2023-09-12 16:45:02 +00:00
|
|
|
|
|
|
|
SELECT subDate('2022-05-07'::Date); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|
|
|
|
SELECT subDate('2022-05-07'::Date, INTERVAL 5 MINUTE, 5); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|
|
|
|
SELECT subDate('2022-05-07'::Date, 10); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
2023-10-23 17:25:46 +00:00
|
|
|
SELECT subDate(1.2, INTERVAL 5 MINUTE); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|