Commit aec74f0
[Data] Fix AliasExpr structural equality to respect rename flag (ray-project#60711)
## Description
This PR fixes a bug in AliasExpr.structurally_equals where the rename
marker was always treated as equal, causing incorrect structural
equality results. This could affect logical optimization rules that rely
on accurate expression equivalence (e.g., projection pushdown).
Main changes:
Correct comparison of _is_rename against other._is_rename
## Related issues
> Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to
ray-project#1234".
## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.
<!-- BUGBOT_STATUS --><sup><a
href="https://cursor.com/dashboard?tab=bugbot">Cursor Bugbot</a> is
reviewing your changes for commit <u>9a399ac</u></sup><!--
/BUGBOT_STATUS -->
---------
Signed-off-by: slfan1989 <slfan1989@apache.org>
Co-authored-by: Goutam <goutam@anyscale.com>1 parent 4c76792 commit aec74f0
File tree
2 files changed
+11
-1
lines changed- python/ray/data
- tests/unit/expressions
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | | - | |
| 1359 | + | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
| |||
0 commit comments