-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Views: Clean up and clarify the view spec #7416
Conversation
format/view-spec.md
Outdated
| _optional_ | `default-catalog` | `string` | Catalog name to use when a reference in the SELECT does not contain a catalog | | ||
| _optional_ | `default-namespace` | `list<string>` | Namespace to use when a reference in the SELECT is a single identifier | | ||
| _optional_ | `field-aliases` | `list<string>` | Column names optionally specified in the create statement | | ||
| _optional_ | `field-docs` | `list<string>` | Column descriptions (COMMENT) optionally specified in the create statement | |
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.
@amogh-jahagirdar, this is currently field-comments
in the implementation. Which one do you want to change?
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.
Good catch, I'd prefer to change the spec to be field-comments
. My rationale is that most operations (at least via SQL) will actually explicitly refer to the word "comment" so it seems more natural.
for example CREATE VIEW v (alias_name COMMENT 'docs', alias_name2, ...) AS SELECT col1, col2, ...
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.
Updated. Please have another look and I'll commit when you +1.
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.
This looks good to me, thanks @rdblue !
Thanks, @amogh-jahagirdar! |
I think it would be great to clarify a few things: 1- If we should document that version summary, namely 2- If we should document whether a view version is immutable in terms of adding representations. Can an old (or committed) view version be changed to receive a new representation? 3- If we should document whether a view version can contain two definitions under the same type/dialect. 4- We discussed documenting possible values in the view interfaces PR. For example, similar to what we say that Happy to raise an issue or a community discussion around some of the above. |
Thanks for reviewing this, @wmoustafa.
|
This cleans up and clarifies a few places in the view spec. It is formatted to be more like the table spec.