Skip to content
Advertisement

Get tables from AWS Glue using boto3

I need to harvest tables and column names from AWS Glue crawler metadata catalogue. I used boto3 but constantly getting number of 100 tables even though there are more. Setting up NextToken doesn’t help. Please help if possible.

Desired results is list as follows:

lst = [table_one.col_one, table_one.col_two, table_two.col_one….table_n.col_n]

JavaScript

UPDATED code, still need to have tablename+columnname:

JavaScript

Advertisement

Answer

Adding sub-loop did the trick to get table+column result.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement