Open miguelgilmartinez opened 9 months ago
Thanks @miguelgilmartinez , that's a good proposal to simplify the SQL.
Until 3.2 StarRocks doesn't support this feature, but you can get a workaround through the subquery, like select one + two as three from (select 1 as one, 2 as two) t
.
We would consider make it a general solution in the future.
We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!
Not stale at all - still highly relevant I believe…
Feature request
Feature description
Allow SELECT queries to reference a previous column alias within the running query on the following columns.
SELECT 1 AS one, 2 AS two, one + two AS three;
Would return:
Some databases with this feature: