Рет қаралды 1,877
This is a step-by-step tutorial on performing an upsert on a pandas data frame to an Amazon Redshift table. This tutorial explains what methods we can use to achieve this and provides a real-world example with sample data.
Related Redshift tutorials:
Add Redshift Data Source In AWS Glue Catalog - • Add Redshift Data Sour...
AWS Glue PySpark:Insert records into Amazon Redshift Table - • AWS Glue PySpark:Inser...
Code Link - github.com/AdrianoNicolucci/d...
timeline:
00:00 Introduction
01:48 Create Redshift Connection
03:04 Read updated data from S3
03:48 redshift.to_sql method
05:59 redshift.copy method
07:14 precombine key parameter
#aws #awsdatawrangler