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

Metadata copying method does not retain existing metadata #697

Closed
yruslan opened this issue Jul 30, 2024 · 3 comments · Fixed by #698
Closed

Metadata copying method does not retain existing metadata #697

yruslan opened this issue Jul 30, 2024 · 3 comments · Fixed by #698
Labels
bug Something isn't working

Comments

@yruslan
Copy link
Collaborator

yruslan commented Jul 30, 2024

Describe the bug

This method should not replace the metadata, but merge metadata from 2 schemas:

val schemaMerged = SparkUtils.copyMetadata(schemaFrom, schemaTo)

Code snippet that caused the issue

--

Expected behavior

Metadata copying method should retain existing metadata.

Context

--

Copybook (if possible)

--

@saikumare-a
Copy link

saikumare-a commented Aug 2, 2024

is it possible to use this method using pyspark?. if yes, could you please share a sample example

@yruslan
Copy link
Collaborator Author

yruslan commented Aug 2, 2024

@saikumare-a
Copy link

Thank you . This helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants