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

if OrderBy list contains the expr that doesn't exist in Select list? #30

Open
fzhedu opened this issue May 24, 2014 · 1 comment
Open

Comments

@fzhedu
Copy link
Member

fzhedu commented May 24, 2014

T1(a int,b int,c int)
select a from T1 order by b+c;

should wo change the processing strcture?
@wangli1426,@egraldlo
or wo can solve this problen later?

@wangli1426
Copy link
Contributor

In my opinion, it seems that the current processing structure is fine.
The order operator cannot change the schema, but the project operator can. Hence, the generated logical tree to the mentioned query should be like this:

Scan(T1)->Project(a,b,c,b+c)->Order(b+c)->Project(a,b,c)

@fzhedu: Anyhow, this problem can be solved later.

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