Description
Currently LogicalRelation.newInstance() simply creates another LogicalRelation object with the same parameters. However, the newInstance() method inherited from MultiInstanceRelation should return a copy of unique expression ids. Current LogicalRelation.newInstance() causes failure when doing self-join.