Skip to content

[LIVY-1018] Extract field comments from Spark schema metadata and set in Datatypeutils#482

Merged
gyogal merged 2 commits into
apache:masterfrom
ArnavBalyan:arnavb/metadata
Oct 7, 2025
Merged

[LIVY-1018] Extract field comments from Spark schema metadata and set in Datatypeutils#482
gyogal merged 2 commits into
apache:masterfrom
ArnavBalyan:arnavb/metadata

Conversation

@ArnavBalyan

@ArnavBalyan ArnavBalyan commented Sep 26, 2025

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

How was this patch tested?

  • CI

@ArnavBalyan

Copy link
Copy Markdown
Member Author

cc @gyogal could you please take a look

@gyogal

gyogal commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Hi @ArnavBalyan , thank you for your contribution, I think it looks good! Could you please open a LIVY ticket for it at https://issues.apache.org/ and add it to the commit message? If possible, could you please include unit tests as well?

@ArnavBalyan ArnavBalyan changed the title Extract field comments from Spark schema metadata and set in Datatypeutils [LIVY-483] Extract field comments from Spark schema metadata and set in Datatypeutils Sep 26, 2025
@ArnavBalyan

Copy link
Copy Markdown
Member Author

Hi @ArnavBalyan , thank you for your contribution, I think it looks good! Could you please open a LIVY ticket for it at https://issues.apache.org/ and add it to the commit message? If possible, could you please include unit tests as well?

Done thanks

@gyogal

gyogal commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

@ArnavBalyan Thanks for adding the JIRA ticket to the PR description, however is LIVY-483 related to this issue? (It seems to be about sparkR memory configuration.) If a new issue is needed and you don't have a JIRA user yet, could you please request one?

@ArnavBalyan

Copy link
Copy Markdown
Member Author

@ArnavBalyan Thanks for adding the JIRA ticket to the PR description, however is LIVY-483 related to this issue? (It seems to be about sparkR memory configuration.) If a new issue is needed and you don't have a JIRA user yet, could you please request one?

Oh I was following the Github issue, let me file a JIRA ticket thanks

@ArnavBalyan ArnavBalyan changed the title [LIVY-483] Extract field comments from Spark schema metadata and set in Datatypeutils [LIVY-1018] Extract field comments from Spark schema metadata and set in Datatypeutils Sep 30, 2025
@ArnavBalyan

Copy link
Copy Markdown
Member Author

@ArnavBalyan Thanks for adding the JIRA ticket to the PR description, however is LIVY-483 related to this issue? (It seems to be about sparkR memory configuration.) If a new issue is needed and you don't have a JIRA user yet, could you please request one?

@gyogal updated could you PTAL thanks

@ArnavBalyan

Copy link
Copy Markdown
Member Author

cc @gyogal gentle reminder thanks!

@gyogal

gyogal commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

Hi @ArnavBalyan , I was able to confirm that with your change the comments are populated for struct member fields on the server side, however I was not able to find a way to read this information with a JDBC client. Could you please let me know which client or API would allow me to check this on the client side?

@ArnavBalyan

Copy link
Copy Markdown
Member Author

Hi @gyogal I've added a UT which should be able to e2e test the change thanks

@gyogal gyogal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding tests! Please let me know if this is the final version of your change.

Just a note, it would be even better if there was a way to extract and validate the "Person ID", "Person name", etc. comments from the struct members.

@ArnavBalyan

Copy link
Copy Markdown
Member Author

Thank you for adding tests! Please let me know if this is the final version of your change.

Just a note, it would be even better if there was a way to extract and validate the "Person ID", "Person name", etc. comments from the struct members.

Thanks, this is the final version of the change, I'll check if we can add recursive extraction in a future change

@gyogal

gyogal commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Sounds good! Thank you @ArnavBalyan once again for your contribution!

@gyogal
gyogal merged commit 370a715 into apache:master Oct 7, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract comment metadata for complexToDataType and schemaFromSparkJson

2 participants