I'm quite new to AWS Glue and still trying to figure things out, I've tried googling the following but can't find an answer...
Does anyone know how to iterate over a DynamicFrame in an AWS Glue job script?
For example, I'm trying to do the following:
datasource0 = glueContext.create_dynamic_frame.from_catalog(
database = "...",
table_name = "...",
transformation_ctx = "datasource0")
for r in datasource0:
print(r)
But receive the following error:
'DynamicFrame' object is not iterable
Traceback (most recent call last):
TypeError: 'DynamicFrame' object is not iterable