wangyum opened a new pull request, #41359:
URL: https://github.com/apache/spark/pull/41359
### What changes were proposed in this pull request?
This PR makes it override `toString` in `LateralColumnAliasReference`.
### Why are the changes needed?
Improve the readability of logical plans.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual test:
```sql
select id + 1 as a1, a1 + 2 as a3 from range(10);
```
Before this PR:
```
Project [(id#2L + 1) AS a1#0, (lateralAliasReference('a1, a1, 'a1) + 2) AS
a3#1]
+- Range (0, 10, step=1, splits=None)
```
After this PR:
```
Project [(id#2L + 1) AS a1#0, (lateralAliasReference(a1) + 2) AS a3#1]
+- Range (0, 10, step=1, splits=None)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]