Skip to content

Redshift/PostgreSQL: Parse optional implicit aliases for wildcard select items#2300

Open
yoavcloud wants to merge 2 commits intoapache:mainfrom
yoavcloud:redshift_implicit_alias_wildcard
Open

Redshift/PostgreSQL: Parse optional implicit aliases for wildcard select items#2300
yoavcloud wants to merge 2 commits intoapache:mainfrom
yoavcloud:redshift_implicit_alias_wildcard

Conversation

@yoavcloud
Copy link
Copy Markdown
Contributor

Add support for implicit aliases of wildcard select items, for example: SELECT c.* cols FROM tbl, which previously the parser would fail on, but are accepted by the dialects.

Semantically, however, it looks like the databases are ignoring this construct. For example, when running the following statement, PostgreSQL fails with the error column "c1" does not exist:

SELECT c.* AS c1
FROM customers AS c
ORDER BY c1;

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.

1 participant