Skip to content

[GLUTEN-10687] Refactor expressionBlacklist to follow Scala style#10688

Merged
FelixYBW merged 1 commit intoapache:mainfrom
beliefer:expressionBlacklist-follows-scala-style
Sep 13, 2025
Merged

[GLUTEN-10687] Refactor expressionBlacklist to follow Scala style#10688
FelixYBW merged 1 commit intoapache:mainfrom
beliefer:expressionBlacklist-follows-scala-style

Conversation

@beliefer
Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

This PR proposes to improve expressionBlacklist for GlutenConfig and make expressionBlacklist follows Scala style.
Fixes: #10687

How was this patch tested?

GA tests.

@beliefer beliefer changed the title [GLUTEN-10687] expressionBlacklist should follows scala style. [GLUTEN-10687] expressionBlacklist should follows Scala style. Sep 12, 2025
@github-actions github-actions Bot added the CORE works for Gluten Core label Sep 12, 2025
@github-actions
Copy link
Copy Markdown

#10687

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@beliefer beliefer force-pushed the expressionBlacklist-follows-scala-style branch from d56044c to bec303b Compare September 12, 2025 04:04
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@beliefer beliefer force-pushed the expressionBlacklist-follows-scala-style branch from bec303b to b13d9df Compare September 12, 2025 05:11
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@beliefer beliefer force-pushed the expressionBlacklist-follows-scala-style branch from b13d9df to 5ed559b Compare September 12, 2025 06:34
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

Comment on lines +278 to +280
val blacklistSet = getConf(EXPRESSION_BLACK_LIST)
.map {
str =>
str
.toLowerCase(Locale.ROOT)
.split(",")
.map(_.trim())
.filter(_.nonEmpty)
.toSet
}
.getOrElse(Set.empty[String])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion:

    val blacklistSet = getConf(EXPRESSION_BLACK_LIST)
      .map(_.toLowerCase(Locale.ROOT).split(",").map(_.trim()).filter(_.nonEmpty).toSet)
      .getOrElse(Set.empty[String])

@beliefer beliefer force-pushed the expressionBlacklist-follows-scala-style branch from 5ed559b to 3801b66 Compare September 12, 2025 07:31
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@zml1206 zml1206 changed the title [GLUTEN-10687] expressionBlacklist should follows Scala style. [GLUTEN-10687] Refactor expressionBlacklist to follow Scala style Sep 12, 2025
@FelixYBW FelixYBW merged commit 59d99f5 into apache:main Sep 13, 2025
100 of 101 checks passed
@beliefer
Copy link
Copy Markdown
Contributor Author

@FelixYBW @zml1206 Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve expressionBlacklist for GlutenConfig

3 participants