-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-51258][SQL] Remove unnecessary inheritance from SQLConfHelper
### What changes were proposed in this pull request? This PR proposes to remove unnecessary inheritance from `SQLConfHelper`. ### Why are the changes needed? 1. Some code doesn't need `SQLConfHelper`, we can remove it. 2. `SparkPlanner` no need to extends `SQLConfHelper`, because it can get the `SQLConf` from `SparkSession` directly. The other modification is related to the class Rule which already extends `SQLConfHelper`, so we should avoid the duplicated inheritance. ``` abstract class Rule[TreeType <: TreeNode[_]] extends SQLConfHelper with Logging { ... } ``` ### Does this PR introduce _any_ user-facing change? 'No'. Just update the inner code. ### How was this patch tested? GA. ### Was this patch authored or co-authored using generative AI tooling? 'No'. Closes #50005 from beliefer/SPARK-51258. Authored-by: beliefer <beliefer@163.com> Signed-off-by: beliefer <beliefer@163.com>
- Loading branch information
Showing
4 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters