-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Background
Currently, we have 2 options for schema transformation:
.option("schema_retention_policy", "keep_original")
.option("schema_retention_policy", "collapse_root")
Field names in mainframe copybooks are usually unique, even if they are part of nested structs. Cobrix can remove all nesting until an array or a primitive is encountered.
Feature
Add a feature to collapse structs or the output data.
Example [Optional]
A simple example if applicable.
Proposed Solution [Optional]
Solution Ideas
- Add a new option
that unstructs on-fly.
.option("schema_retention_policy", "collapse_struct")
OR - Add a method to
SparkUtils
that unstructs as a post-processing.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request