Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ object CHBackendSettings extends BackendSettingsApi with Logging {
CHConfig.prefixOf("enable.coalesce.aggregation.union")
val GLUTEN_ENABLE_COALESCE_PROJECT_UNION: String =
CHConfig.prefixOf("enable.coalesce.project.union")
val GLUTEN_JOIN_AGGREGATE_TO_AGGREGATE_UNION: String =
CHConfig.prefixOf("join.aggregate.to.aggregate.union")

def affinityMode: String = {
SparkEnv.get.conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ object CHRuleApi {
(spark, parserInterface) => new GlutenCacheFilesSqlParser(spark, parserInterface))
injector.injectParser(
(spark, parserInterface) => new GlutenClickhouseSqlParser(spark, parserInterface))
injector.injectResolutionRule(spark => new JoinAggregateToAggregateUnion(spark))
// CoalesceAggregationUnion and CoalesceProjectionUnion should follows
// JoinAggregateToAggregateUnion
injector.injectResolutionRule(spark => new CoalesceAggregationUnion(spark))
injector.injectResolutionRule(spark => new CoalesceProjectionUnion(spark))
injector.injectResolutionRule(spark => new RewriteToDateExpresstionRule(spark))
Expand Down
Loading