From 6552b0f9179464ee4bcb0156b0246d800ab5c1ac Mon Sep 17 00:00:00 2001 From: Sophie Waldman <62553142+sjwmoveon@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:19:46 -0500 Subject: [PATCH] Use `character varying` as output type for Redshift In Redshift, `string` is not a supported column type. Replace `string` with `character varying` for output columns. --- glue_job.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glue_job.tf b/glue_job.tf index c24bf8e..c875257 100644 --- a/glue_job.tf +++ b/glue_job.tf @@ -51,8 +51,8 @@ locals { # Unsupported columnt types for Redshift: these will be replaced by the mapped type unsupported_output_column_types = { - "hstore" = "string" - "jsonb" = "string" + "hstore" = "character varying" + "jsonb" = "character varying" "numeric\\(3,2\\)" = "decimal(3,2)" "timestamp without time zone" = "timestamp" }