Skip to content

Commit

Permalink
fix: 🎨 Correct timestamp data type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyarancio committed Oct 30, 2024
1 parent 8b457f8 commit d2259a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions robotoff/utils/sql/jsonl_to_parquet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit d2259a8

Please sign in to comment.