-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add generated expression to extra info in Delta Lake #16631
Conversation
{ | ||
return ColumnMetadata.builder() | ||
.setName(column.getName()) | ||
.setType(column.getType()) | ||
.setHidden(column.getColumnType() == SYNTHESIZED) | ||
.setComment(Optional.ofNullable(comment)) | ||
.setNullable(nullability) | ||
.setExtraInfo(generation == null ? Optional.empty() : Optional.of("generated: " + generation)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expression may contain :
. Do we want to just put generated
without expression or quote the expression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is fine.
{ | ||
return ColumnMetadata.builder() | ||
.setName(column.getName()) | ||
.setType(column.getType()) | ||
.setHidden(column.getColumnType() == SYNTHESIZED) | ||
.setComment(Optional.ofNullable(comment)) | ||
.setNullable(nullability) | ||
.setExtraInfo(generation == null ? Optional.empty() : Optional.of("generated: " + generation)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is fine.
Description
Add generated expression to extra info in Delta Lake
Release notes
(x) Release notes are required, with the following suggested text: