Open fzhedu opened 3 years ago
For this case, we are not going to eliminate the topn, we should move the projection down to the topn to remove the redundant calculation here.
Take another simple case as an example. Project{a+1}->TopN{by a+1, count 10}->Scan(t)
. Notice that the top-n is just a calculator, it won't change the output of its child. So its output is a
instead of a+1
since its child Scan(t)
's output is a
.
@fzhedu If you get me, you can change the issue title to a more correct one.
Feature Request
the extra projection for topN are unnecessary.
Is your feature request related to a problem? Please describe:
Describe the feature you'd like:
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy: