Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48544][SQL] Reduce memory pressure of empty TreeNode BitSets
### What changes were proposed in this pull request? - Changed the `ineffectiveRules` variable of the `TreeNode` class to initialize lazily. This will reduce unnecessary driver memory pressure. ### Why are the changes needed? - Plans with large expression or operator trees are known to cause driver memory pressure; this is one step in alleviating that issue. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing UT covers behavior. Outwards facing behavior does not change. ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#46919 from n-young-db/ineffective-rules-lazy. Authored-by: Nick Young <[email protected]> Signed-off-by: Josh Rosen <[email protected]>
- Loading branch information