Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Scalar values aliasing #370

Open
Nosfistis opened this issue Nov 1, 2018 · 0 comments
Open

Scalar values aliasing #370

Nosfistis opened this issue Nov 1, 2018 · 0 comments

Comments

@Nosfistis
Copy link

Nosfistis commented Nov 1, 2018

At the moment while it is possible to add scalar values (e.g. SELECT 1) with .function('1'), it is not possible to alias them, which is particularly useful in cases such as unions. For example:

SELECT 1 AS priority, col FROM a UNION SELECT 2 AS priority, col FROM b;

It is not possible to get the priority column from this query at the moment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant