Robert Put
10/18/2022, 5:54 PM2022-10-18 14:30:45 normalization > Database Error in model RESTAURANT_SCD (models/generated/airbyte_incremental/scd/READ_MIRROR_V3/RESTAURANT_SCD.sql)
2022-10-18 14:30:45 normalization > 100035 (22007): Timestamp '+192153-11-18T12:06:13.000000' is not recognized
this is in the snowflake destination,
which i understand won't support the timestamp...
but im not sure where this timstamp is coming from, on the db source, i search or it but can't find it:
SELECT *
FROM restaurant
WHERE updated_at = '192153-11-18 12:06:13.000000';
Is there an easy way to each for the airbyte row id in the raw table in snowflake to see the entire row with the issue?user
10/18/2022, 5:56 PMRobert Put
10/18/2022, 6:53 PM49842 | 11816 | 128777-06-08 11:14:30 | 2022-06-25 04:08:30.91141 | 2022-06-25 04:08:30.91141
Database Error in model RESTAURANT_SCD (models/generated/airbyte_incremental/scd/READ_MIRROR_V3/RESTAURANT_BLACKOUTS_SCD.sql)
100035 (22007): Timestamp '+128777-06-08T11:14:30.000000' is not recognized
compiled SQL at ../build/run/airbyte_utils/models/generated/airbyte_incremental/scd/READ_MIRROR_V3/RESTAURANT_SCD.sqlRobert Put
10/18/2022, 6:55 PMFor DATE and TIMESTAMP data, Snowflake recommends using years between 1582 and 9999. Snowflake accepts some years outside this range, but years prior to 1582 should be avoided due to limitations on the Gregorian Calendar.
found this but it doesn't give a max/min?Eli Sigal
10/18/2022, 7:42 PMFor DATE and TIMESTAMP data, Snowflake recommends using years between 1582 and 9999. Snowflake accepts some years outside this range, but years prior to 1582 should be avoided due to limitations on the Gregorian Calendar.
it means that the logic you have that converts unix or epoc time into timestamp is incorrect since as you can understand there is no 1582 data available unless it is artificially created which is possible in some cases.
In any case the workaround is to work within snowflake limits and create a dimension that identifies the timestamp by era\ decade\ century etc..
This is how it usually goes.
If you have this error:
2022-10-18 14:30:45 normalization > Database Error in model RESTAURANT_SCD (models/generated/airbyte_incremental/scd/READ_MIRROR_V3/RESTAURANT_SCD.sql)
2022-10-18 14:30:45 normalization > 100035 (22007): Timestamp '+192153-11-18T12:06:13.000000' is not recognized
try this query since the issue is from the source also.
snowflake dialact
SELECT *
FROM restaurant
WHERE updated_at REGEXP '192153-11-18';
or
SELECT *
FROM restaurant
WHERE RLIKE(updated_at, '[0-9]{5}-11-18');Robert Put
10/18/2022, 7:47 PMid | restaurant_id | expires_at | created_at | updated_at
49842 | 11816 | 128777-06-08 11:14:30 | 2022-06-25 04:08:30.91141 | 2022-06-25 04:08:30.91141Robert Put
10/18/2022, 7:47 PMRobert Put
10/18/2022, 7:48 PMRobert Put
10/18/2022, 7:49 PMRobert Put
10/18/2022, 7:50 PMRobert Put
10/18/2022, 7:52 PM"expires_at": "+192153-06-19T09:43:56.000000",
vs the expected:Robert Put
10/18/2022, 7:52 PM"expires_at": "192153-06-19T09:43:56.000000",
in the db it looks correct...Robert Put
10/18/2022, 9:46 PMRobert Put
10/18/2022, 9:46 PMRobert Put
10/18/2022, 9:49 PMEli Sigal
10/19/2022, 8:56 AMRobert Put
10/19/2022, 1:00 PMEli Sigal
10/19/2022, 3:37 PM