Skip to content

[SPARK-30309][SQL] Mark Filter as a sealed class #26950

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

Closed
wants to merge 1 commit into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Dec 19, 2019

What changes were proposed in this pull request?

Added the sealed keyword to the Filter class

Why are the changes needed?

To do not miss handling of new filters in a datasource in the future. For example, AlwaysTrue and AlwaysFalse were added recently by #23606

Does this PR introduce any user-facing change?

Should not.

How was this patch tested?

By existing tests.

@MaxGekk
Copy link
Member Author

MaxGekk commented Dec 19, 2019

ping @hvanhovell

@@ -29,7 +29,7 @@ import org.apache.spark.annotation.{Evolving, Stable}
* @since 1.3.0
*/
@Stable
abstract class Filter {
sealed abstract class Filter {
Copy link
Member

Choose a reason for hiding this comment

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

Hi, @MaxGekk . Please file a JIRA for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member

Choose a reason for hiding this comment

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

Thanks.

@MaxGekk MaxGekk changed the title [MINOR][SQL] Mark Filter as a sealed class [SPARK-30309][SQL] Mark Filter as a sealed class Dec 19, 2019
@SparkQA
Copy link

SparkQA commented Dec 19, 2019

Test build #115573 has finished for PR 26950 at commit af979dd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • sealed abstract class Filter

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Merged to master. Thank you, @MaxGekk .

@MaxGekk MaxGekk deleted the sealed-filter branch June 5, 2020 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants