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

We cannnot use aliased column in order by clause #745

Closed
Tracked by #738
psvri opened this issue Jan 19, 2025 · 1 comment
Closed
Tracked by #738

We cannnot use aliased column in order by clause #745

psvri opened this issue Jan 19, 2025 · 1 comment

Comments

@psvri
Copy link
Contributor

psvri commented Jan 19, 2025

When I tried to use the aliased column in group by , limbo returns a parser error, but it works fine in sqlite3 as shown below.

Sqlite3 output

SQLite version 3.48.0
sqlite> create table temp (t1 integer, t2 integer);
sqlite> insert into temp values (1, 2), (1, 2), (3, 4);
sqlite> select t1 as x from temp order by x;
1
1
3

Limbo output

limbo> create table temp (t1 integer, t2 integer);
limbo> insert into temp values (1, 2), (1, 2), (3, 4);
limbo> select t1 as x from temp order by x;

  × Parse error: Column x not found
@penberg
Copy link
Collaborator

penberg commented Jan 19, 2025

Duplicate of #744

@penberg penberg marked this as a duplicate of #744 Jan 19, 2025
@penberg penberg closed this as completed Jan 19, 2025
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

2 participants