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
Generate column names instead of labels #7036
Comments
|
I believe that the idea behind the generated labels is to precisely be disallowed as column names so that there is no overlap with user provided names for columns. In my opinion adding |
|
It is highly convenient for a tool that wishes to preserve the result set as a real table and only sees the user entering a SELECT |
|
I'm going to close this issue as a duplicate of issue 7032. |
|
No, it is not the same, as 7032 calls for better handling of duplicate names in error handling. I wish to let the system generate meaningful, distinct default column names. One can not depend on the user in all cases. It is needed in the next feature release. |
|
just add the as 'alias', gives the user full control. |
|
The user is an application that generates them!! it has no control over the expressions. |
|
Niels : Martin Kersten : |
|
"Not being able to address the attributes subsequently is a gross misstake." This is a user mistake, not a database one. |
|
Though shall never generate identifiers in a substructure that makes the complete structure invalid. CREATE TABLE pair AS SELECT 1, 2 becomes invalid while this can be easily avoided using a proper system-dependent name generation. If you take the SQL standard literally, then the following expression should also be at fault |
|
We are doing exactly like postgres, ie it has a default name for column without labels. If there is more than one column without a label then a duplicate name is generated, thus error. |
Is your feature request related to a problem? Please describe.
Consider the following statements:
Describe the solution you'd like
I would expect that proper columns names are automatically generated. e.g. col_1, col_2,...
such that the resulting table can be easily re-used.
It is a programming convenience. Especially if you can easily retrieve the
number of columns in table_3a. (which we can from the catalogue)
The text was updated successfully, but these errors were encountered: