Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spark] Supports runtime filter #2421

Merged
merged 4 commits into from Dec 1, 2023
Merged

Conversation

YannByron
Copy link
Contributor

Purpose

Linked issue: close #xxx

Tests

API and Format

Documentation

@@ -30,6 +31,8 @@ import scala.collection.JavaConverters._

class SparkPushDownTest extends PaimonSparkTestBase {
Copy link
Contributor

Choose a reason for hiding this comment

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

Class name and package are not aligned

val converter = new SparkFilterConverter(table.rowType())
val partitionFilter = filters.flatMap {
case In(attr, values) if table.partitionKeys().contains(attr) =>
Some(PredicateBuilder.or(values.map(value => converter.convert(EqualTo(attr, value))): _*))
Copy link
Contributor

Choose a reason for hiding this comment

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

here can use converter.covert() directly

@Zouxxyy
Copy link
Contributor

Zouxxyy commented Dec 1, 2023

+1

@JingsongLi JingsongLi merged commit b4fc2bd into apache:master Dec 1, 2023
9 checks passed
JingsongLi pushed a commit that referenced this pull request Dec 1, 2023
@YannByron
Copy link
Contributor Author

#2404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants