1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Hi ,
I think that the issue is when you are reading the data from Postgres, because the query built by Glue uses the lower case column name. PostgreSQL is a case-sensitive database by default.
if you are using from_catalog to read the data, you could use the following code to avoid glue automatic query building, and force the query you need:
dyf_query_orddt = glueContext.create_dynamic_frame.from_catalog(
database="mysqltest",
table_name="classicmodels_orders",
additional_options={"query":"SELECT * from classicmodels.orders WHERE orderDate > '2005-01-01';"},
transformation_ctx = "dyf_query_orddt",
)
hope this helps
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- Come posso risolvere gli errori di connessione di Marketplace AWS nei miei processi ETL in AWS Glue?AWS UFFICIALEAggiornata 3 mesi fa