canonical / canonical/sqlair

Support the AS keyword in actual SQL statements.

Open
#179 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
19
Forks
10
PR merge metrics
No merged PRs in 30d

Description

If you have a query such as the following:

`SELECT (a.name, b.name AS bname) AS (&fooStruct.*) FROM test`

SQLAir complains on the first AS to get the column name changed and avoid conflict. It would be nice if this was support as it avoids having to unpack all the columns individually and the subsequent blowout in SELECT statement verbosity. The other way of currently working around this is to build a view as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.