How to avoid transforming data for a dropped column without updating glue catalog

0

We have dropped a column from target redshift table, but same is not updated in glue data catalog, in such case we don't want that column to be created in our target table, is it possible to handle that without updating the data catalog?

1개 답변
0

Hello,

AWS Glue Data Catalog acts as meta-database for Redshift Spectrum.Hence, both Glue and Redshift Spectrum will have same schema information. If you drop a column in Redshift Spectrum , then it automatically gets dropped off from Glue catalog and Athena.

For example: I ran a glue crawler with S3 file which has below columns ->

friendlyid bigint, url string, status string, substatus string, starttime string, endtime string, actionabletime string

This created a table in Athena and Redshift . Then I altered the redshift table to drop the column "status"by using below command -> alter table spec_schema.antofagasta_waterloss_csv drop column status;

Now , when I check Glue and Athena , at both the places I dont see the column "status".

=======================================================================================================================================================

I hope you find the above information helpful.

 Thank you !

AWS
답변함 2년 전

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

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

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

관련 콘텐츠