Skip to content

Commit

Permalink
Pruning unused project column
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiayi771 committed Jan 3, 2025
1 parent ff89539 commit c622f8b
Show file tree
Hide file tree
Showing 147 changed files with 605 additions and 308 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ object CHRuleApi {
val validatorBuilder: GlutenConfig => Validator = conf =>
Validators.newValidator(conf, offloads)
val rewrites =
Seq(RewriteIn, RewriteMultiChildrenCount, RewriteJoin, PullOutPreProject, PullOutPostProject)
Seq(
RewriteIn,
RewriteMultiChildrenCount,
RewriteJoin,
PullOutPreProject,
PullOutPostProject,
ProjectColumnPruning)
injector.injectTransform(
c =>
intercept(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ object VeloxRuleApi {
val validatorBuilder: GlutenConfig => Validator = conf =>
Validators.newValidator(conf, offloads)
val rewrites =
Seq(RewriteIn, RewriteMultiChildrenCount, RewriteJoin, PullOutPreProject, PullOutPostProject)
Seq(
RewriteIn,
RewriteMultiChildrenCount,
RewriteJoin,
PullOutPreProject,
PullOutPostProject,
ProjectColumnPruning)
injector.injectTransform(
c => HeuristicTransform.WithRewrites(validatorBuilder(c.glutenConf), rewrites, offloads))

Expand Down Expand Up @@ -123,7 +129,13 @@ object VeloxRuleApi {
// Gluten RAS: The RAS rule.
val validatorBuilder: GlutenConfig => Validator = conf => Validators.newValidator(conf)
val rewrites =
Seq(RewriteIn, RewriteMultiChildrenCount, RewriteJoin, PullOutPreProject, PullOutPostProject)
Seq(
RewriteIn,
RewriteMultiChildrenCount,
RewriteJoin,
PullOutPreProject,
PullOutPostProject,
ProjectColumnPruning)
injector.injectCoster(_ => LegacyCoster)
injector.injectCoster(_ => RoughCoster)
injector.injectCoster(_ => RoughCoster2)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c622f8b

Please sign in to comment.