AWS Glue - Truncate destination postgres table prior to insert
问题 I am trying to truncate a postgres destination table prior to insert, and in general, trying to fire external functions utilizing the connections already created in GLUE. Has anyone been able to do so? 回答1: I've tried the DROP/ TRUNCATE scenario, but have not been able to do it with connections already created in Glue, but with a pure Python PostgreSQL driver, pg8000. Download the tar of pg8000 from pypi Create an empty __init__.py in the root folder Zip up the contents & upload to S3