UnnestFrame class - AWS Glue

UnnestFrame class

Unnests a DynamicFrame, flattens nested objects to top-level elements, and generates join keys for array objects.

Example

We recommend that you use the DynamicFrame.unnest() method to flatten nested structures in a DynamicFrame. To view a code example, see Example: Use unnest to turn nested fields into top-level fields.

Methods

__call__(frame, transformation_ctx = "", info="", stageThreshold=0, totalThreshold=0)

Unnests a DynamicFrame, flattens nested objects to top-level elements, and generates join keys for array objects.

  • frame – The DynamicFrame to unnest (required).

  • transformation_ctx – A unique string that is used to identify state information (optional).

  • info – A string associated with errors in the transformation (optional).

  • stageThreshold – The maximum number of errors that can occur in the transformation before it errors out (optional). The default is zero.

  • totalThreshold – The maximum number of errors that can occur overall before processing errors out (optional). The default is zero.

apply(cls, *args, **kwargs)

Inherited from GlueTransform apply.

name(cls)

Inherited from GlueTransform name.

describeArgs(cls)

Inherited from GlueTransform describeArgs.

describeReturn(cls)

Inherited from GlueTransform describeReturn.

describeTransform(cls)

Inherited from GlueTransform describeTransform.

describeErrors(cls)

Inherited from GlueTransform describeErrors.

describe(cls)

Inherited from GlueTransform describe.