如何使用 Glue 覆盖 Redshift 中的内容?

0

【以下的问题经过翻译处理】 我有一个客户想要在 Glue 作业中覆盖 Redshift 中的一个表。 看了之后,目前Glue DynamicFrameWriter中好像没有mode=overwrite这个选项。 客户可以为此使用哪些解决方法?

profile picture
전문가
질문됨 5달 전27회 조회
1개 답변
0

【以下的回答经过翻译处理】 如果您的意思是upsert,则有一个变通解决方案,让Glue将所有行插入临时表,然后在Glue之外执行更新插入/合并。

使用暂存表执行合并(更新插入),https://docs.aws.amazon.com/redshift/latest/dg/c_best-practices-upsert.html

还有一个博客在谈论使用 AWS Glue 和 SneaQL 将更新插入到 Amazon Redshift 中,我还没有尝试过,但是尝试一下听起来很酷。 https://aws.amazon.com/blogs/big-data/upsert-into-amazon-redshift-using-aws-glue-and-sneaql/

profile picture
전문가
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인