From d2259a8c16b20716a9407dbe10c06096540ccd51 Mon Sep 17 00:00:00 2001 From: jeremyarancio Date: Wed, 30 Oct 2024 15:28:50 +0100 Subject: [PATCH] fix: :art: Correct timestamp data type --- robotoff/utils/sql/jsonl_to_parquet.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/robotoff/utils/sql/jsonl_to_parquet.sql b/robotoff/utils/sql/jsonl_to_parquet.sql index dfc8f8f175..deb91d7e9d 100644 --- a/robotoff/utils/sql/jsonl_to_parquet.sql +++ b/robotoff/utils/sql/jsonl_to_parquet.sql @@ -18,7 +18,7 @@ COPY ( completeness, correctors_tags, countries_tags, - created_t, + to_timestamp(created_t)::datetime AS created_t, -- Convert from unixtime to datetime creator, data_quality_errors_tags, data_quality_info_tags, @@ -45,7 +45,7 @@ COPY ( ingredients_tags, ingredients_text_with_allergens, ingredients_text, - COLUMNS('ingredients_text_\w{2}$'), + COLUMNS('ingredients_text_\w{2}$'), -- All columns containing ingredients_text_.. ingredients_with_specified_percent_n, ingredients_with_unspecified_percent_n, ciqual_food_name_tags, @@ -61,10 +61,10 @@ COPY ( languages_codes, last_edit_dates_tags, last_editor, - last_image_t, + to_timestamp(last_image_t)::datetime AS last_image_t, last_modified_by, - last_modified_t, - last_updated_t, + to_timestamp(last_modified_t)::datetime AS last_modified_t, + to_timestamp(last_updated_t)::datetime AS last_updated_t, link, main_countries_tags, manufacturing_places,