Thread: Distinct tightly coupled with Agg

Distinct tightly coupled with Agg

From
Ankit Kumar Pandey
Date:

Hello,

I am looking at todo item Implement DISTINCT clause in window aggregates and while looking at code, I found distinct tightly coupled with Agg function. Looking at another todo item Do we really need so much duplicated code between Agg and WindowAgg?  I was wondering what is general stance on this?

If Agg/WindowAgg gets harmonized, implementing distinct would be lot more intuitive. Should this be attempted first? If this is not necessary, I assume making distinct a standalone piece should be an option too?

Thanks,

Ankit