Description
select id + 1 as a1, a1 + 2 as a3 from range(10);
Before:
Project [(id#2L + 1) AS a1#0, (lateralAliasReference('a1, a1, 'a1) + 2) AS a3#1] +- Range (0, 10, step=1, splits=None)
After:
Project [(id#2L + 1) AS a1#0, (lateralAliasReference(a1) + 2) AS a3#1] +- Range (0, 10, step=1, splits=None)