Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make 'collapse_root' default Spark schema generation option #406

Closed
yruslan opened this issue Jul 28, 2021 · 0 comments · Fixed by #408
Closed

Make 'collapse_root' default Spark schema generation option #406

yruslan opened this issue Jul 28, 2021 · 0 comments · Fixed by #408
Assignees
Labels
enhancement New feature or request

Comments

@yruslan
Copy link
Collaborator

yruslan commented Jul 28, 2021

Background

spark-cobol supports

.option("schema_retention_policy", "collapse_root")

and

.option("schema_retention_policy", "keep_original")

Currently, 'keep_original' is the default one. But 'collapse_root' is more often used since it is easier to apply transformations in Spark when fields are not nested.

Feature

Make

.option("schema_retention_policy", "collapse_root")

the default option and use it if none are specified

@yruslan yruslan added the enhancement New feature or request label Jul 28, 2021
@yruslan yruslan self-assigned this Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant