Hi Ishan, Why do you need to do logical -> physical -> logical transformation?
Regarding aliases, there is no guarantee that they will be retained. There are various places where there is some effort to keep them intact but your code shouldn't rely on this. Best, Stamatis On Tue, Jun 15, 2021 at 4:37 AM Sharma, Ishan <ishan_sha...@brown.edu> wrote: > Hi folks, > There exists an API to get the column name for the aggregate column ( > *getNamedAggCalls*), I can't seem to find a similar API for group columns, > is there a way to obtain the same in *LogicalAggregate*? > > Currently, I am optimizing the logical plan into a physical plan (in > bindable convention) and then converting it back to a plan with logical > nodes via *ToLogicalConverter. *As a consequence of > *AGGREGATE_PROJECT_MERGE* rule, the project gets removed and hence > information about the column aliases for the group columns in aggregate > does not seem to be available. I guess I am missing something minor. > > Thanks, > Ishan >