mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
4b05106cc4
The upper bound was supposed to be 9999-12-31 but it was accidentally set to 9999-01-01.
30 lines
1006 B
SQL
30 lines
1006 B
SQL
--
|
|
SELECT 'Invocation with constant';
|
|
|
|
SELECT fromModifiedJulianDay(-1);
|
|
SELECT fromModifiedJulianDay(0);
|
|
SELECT fromModifiedJulianDay(59154);
|
|
SELECT fromModifiedJulianDay(NULL);
|
|
SELECT fromModifiedJulianDay(CAST(NULL, 'Nullable(Int64)'));
|
|
SELECT fromModifiedJulianDay(-678942); -- { serverError CANNOT_FORMAT_DATETIME }
|
|
SELECT fromModifiedJulianDay(-678941);
|
|
SELECT fromModifiedJulianDay(2973483);
|
|
SELECT fromModifiedJulianDay(2973484); -- { serverError CANNOT_FORMAT_DATETIME }
|
|
|
|
SELECT 'or null';
|
|
SELECT fromModifiedJulianDayOrNull(59154);
|
|
SELECT fromModifiedJulianDayOrNull(NULL);
|
|
SELECT fromModifiedJulianDayOrNull(-678942);
|
|
SELECT fromModifiedJulianDayOrNull(2973484);
|
|
|
|
--
|
|
SELECT 'Invocation with Int32 column';
|
|
|
|
DROP TABLE IF EXISTS fromModifiedJulianDay_test;
|
|
CREATE TABLE fromModifiedJulianDay_test (d Int32) ENGINE = Memory;
|
|
|
|
INSERT INTO fromModifiedJulianDay_test VALUES (-1), (0), (59154);
|
|
SELECT fromModifiedJulianDay(d) FROM fromModifiedJulianDay_test;
|
|
|
|
DROP TABLE fromModifiedJulianDay_test;
|