Skip to content
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

Request for top level aliasing to be supported as RedShift uses them when unnesting #5382

Open
kitsunde opened this issue Nov 15, 2022 · 0 comments

Comments

@kitsunde
Copy link

Environment

Knex version: 2.3.0
Database + version: RedShift

Feature discussion / request

  1. Explain what is your use case

In RedShift you UNNEST a SUPER type like so:

SELECT value
FROM my_table AS my_table_alias,
my_table_alias.values AS value

But knex drops the alias unless it's a subquery https://knexjs.org/guide/query-builder.html#as so

  1. Explain what kind of feature would support this
knex('my_table').as('my_table_alias')

should become

SELECT * FROM my_table AS my_table_alias
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

No branches or pull requests

1 participant